Browse Source
Update optimize-windows-update.ps1
Fixed flaw with variable expansion
pull/143/head
Benedikt Graeb
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
scripts/optimize-windows-update.ps1
|
@ -26,6 +26,6 @@ echo "Disable 'Updates are available' message" |
|
|
Write-Output "Disable 'Updates are available' message" |
|
|
Write-Output "Disable 'Updates are available' message" |
|
|
|
|
|
|
|
|
takeown /F "$env:WinDIR\System32\MusNotification.exe" |
|
|
takeown /F "$env:WinDIR\System32\MusNotification.exe" |
|
|
icacls "$env:WinDIR\System32\MusNotification.exe" /deny "$EveryOne:(X)" |
|
|
icacls "$env:WinDIR\System32\MusNotification.exe" /deny "$($EveryOne):(X)" |
|
|
takeown /F "$env:WinDIR\System32\MusNotificationUx.exe" |
|
|
takeown /F "$env:WinDIR\System32\MusNotificationUx.exe" |
|
|
icacls "$env:WinDIR\System32\MusNotificationUx.exe" /deny "$EveryOne:(X)" |
|
|
icacls "$env:WinDIR\System32\MusNotificationUx.exe" /deny "$($EveryOne):(X)" |
|
|