Disable Windows Update reboot only as admin
This commit is contained in:
parent
16560270a7
commit
050221da47
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ $null = New-Module {
|
|||
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
||||
}
|
||||
|
||||
Disable-WindowsUpdateAutoRestart;
|
||||
if (Test-Admin) {
|
||||
Disable-WindowsUpdateAutoRestart;
|
||||
}
|
||||
|
||||
New-Alias -Force "sudo" gsudo;
|
||||
& $Action;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue