mirror of
https://github.com/W4RH4WK/Debloat-Windows-10.git
synced 2024-11-17 15:25:37 +00:00
Query system for "Everyone" translation
Merge branch 'pr-143'
This commit is contained in:
commit
ea2445e551
@ -18,8 +18,14 @@ Set-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization
|
||||
#echo "Disabling automatic driver update"
|
||||
#sp "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" "SearchOrderConfig" 0
|
||||
|
||||
$objSID = New-Object System.Security.Principal.SecurityIdentifier "S-1-1-0"
|
||||
$EveryOne = $objSID.Translate( [System.Security.Principal.NTAccount]).Value
|
||||
|
||||
echo "Disable 'Updates are available' message"
|
||||
|
||||
Write-Output "Disable 'Updates are available' message"
|
||||
|
||||
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"
|
||||
icacls "$env:WinDIR\System32\MusNotificationUx.exe" /deny "Everyone:(X)"
|
||||
icacls "$env:WinDIR\System32\MusNotificationUx.exe" /deny "$($EveryOne):(X)"
|
||||
|
Loading…
Reference in New Issue
Block a user