Remove unnecessary policy change
This commit is contained in:
parent
e4dc0ef2ec
commit
71e46db226
|
@ -57,10 +57,6 @@ $null = New-Module {
|
|||
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
||||
}
|
||||
|
||||
if (Test-Admin) {
|
||||
Disable-WindowsUpdateAutoRestart;
|
||||
}
|
||||
|
||||
New-Alias -Force "sudo" gsudo;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,19 +56,6 @@ $null = New-Module {
|
|||
Set-BootMessage;
|
||||
}
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Disables automatic reboots by Windows Update.
|
||||
#>
|
||||
function Disable-WindowsUpdateAutoRestart {
|
||||
$path = "$wuPolicyPath\AU";
|
||||
$null = New-Item -Force $path -ErrorAction SilentlyContinue;
|
||||
|
||||
Set-ItemProperty $path `
|
||||
-Name NoAutoRebootWithLoggedOnUsers `
|
||||
-Value 1;
|
||||
}
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Resets the automatic reboot state.
|
||||
|
|
Loading…
Reference in a new issue