Skip to content

Commit e99ede0

Browse files
committed
Update Harden-Windows-Security.ps1
1 parent e536c32 commit e99ede0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Harden-Windows-Security.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ Function P {
1414

1515
if (!(Get-Command -Name 'pwsh.exe' -ErrorAction Ignore)) {
1616
try {
17-
Write-Verbose -Verbose -Message 'Trying to Install PowerShell Core using Winget because it could not be found' -Verbose
17+
Write-Verbose -Message 'Trying to Install PowerShell Core using Winget because it could not be found' -Verbose
1818
$null = Winget install 9MZ1SNWT0N5D --accept-package-agreements --accept-source-agreements
1919
}
2020
catch {
2121

2222
Push-Location -Path ([System.IO.Path]::GetTempPath())
2323

24-
Write-Verbose -Verbose -Message 'Failed to Install PowerShell Core using Winget' -Verbose
24+
Write-Verbose -Message 'Failed to Install PowerShell Core using Winget' -Verbose
2525
$progressPreference = 'silentlyContinue'
26-
Write-Verbose -Verbose -Message 'Downloading WinGet and its dependencies...' -Verbose
26+
Write-Verbose -Message 'Downloading WinGet and its dependencies...' -Verbose
2727
# https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget-on-windows-sandbox
2828
Invoke-WebRequest -Uri 'https://aka.ms/getwinget' -OutFile 'Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle'
2929
Invoke-WebRequest -Uri 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' -OutFile 'Microsoft.VCLibs.x64.14.00.Desktop.appx'
@@ -40,7 +40,7 @@ Function P {
4040
Pop-Location
4141
}
4242

43-
Write-Verbose -Verbose -Message 'Trying to Install PowerShell Core using Winget again' -Verbose
43+
Write-Verbose -Message 'Trying to Install PowerShell Core using Winget again' -Verbose
4444
# https://apps.microsoft.com/detail/9mz1snwt0n5d
4545
$null = Winget install 9MZ1SNWT0N5D --accept-package-agreements --accept-source-agreements
4646
}

0 commit comments

Comments
 (0)