Disable auto reboot by default
This commit is contained in:
parent
9c7729ce56
commit
d37cd11acd
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
. "$PSScriptRoot/Config.ps1";
|
. "$PSScriptRoot/Config.ps1";
|
||||||
. "$PSScriptRoot/../Types/OneShotTask.ps1";
|
. "$PSScriptRoot/../Types/OneShotTask.ps1";
|
||||||
. "$PSScriptRoot/../../Windows/Scripts/PowerManagement.ps1";
|
. "$PSScriptRoot/../../Windows/Scripts/PowerManagement.ps1";
|
||||||
|
. "$PSScriptRoot/../../Windows/Scripts/Registry.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
. "$PSScriptRoot/../Types/OneShotTask.ps1";
|
. "$PSScriptRoot/../Types/OneShotTask.ps1";
|
||||||
|
@ -28,6 +29,7 @@ $null = New-Module {
|
||||||
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
$env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Disable-WindowsUpdateAutoRestart;
|
||||||
New-Alias -Force "sudo" gsudo;
|
New-Alias -Force "sudo" gsudo;
|
||||||
& $Action;
|
& $Action;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue