From d37cd11acde5d7c95dcd51ce112962a85d07a0df Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 12 Aug 2024 01:27:50 +0200 Subject: [PATCH] Disable auto reboot by default --- scripts/Common/Scripts/Operations.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index b11b9163..86cda068 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -1,6 +1,7 @@ . "$PSScriptRoot/Config.ps1"; . "$PSScriptRoot/../Types/OneShotTask.ps1"; . "$PSScriptRoot/../../Windows/Scripts/PowerManagement.ps1"; +. "$PSScriptRoot/../../Windows/Scripts/Registry.ps1"; $null = New-Module { . "$PSScriptRoot/../Types/OneShotTask.ps1"; @@ -28,6 +29,7 @@ $null = New-Module { $env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE; } + Disable-WindowsUpdateAutoRestart; New-Alias -Force "sudo" gsudo; & $Action; }