From 7f7585dd94cac9faf07ceece1d9d2d6062a32b81 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 8 Dec 2024 02:27:31 +0100 Subject: [PATCH] =?UTF-8?q?Allow=20=E2=80=98SetComputerName.ps1=E2=80=99?= =?UTF-8?q?=20script=20time=20to=20start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modifier/ComputerName.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/modifier/ComputerName.cs b/modifier/ComputerName.cs index 04cd279..94755fd 100644 --- a/modifier/ComputerName.cs +++ b/modifier/ComputerName.cs @@ -83,6 +83,7 @@ void SetComputerName(string value) SpecializeScript.Append($$""" Get-Content -LiteralPath '{{getterFile}}' -Raw | Invoke-Expression > 'C:\Windows\Setup\Scripts\ComputerName.txt'; Start-Process -FilePath ( Get-Process -Id $PID ).Path -ArgumentList '-NoProfile', '-Command', 'Get-Content -LiteralPath "{{setterFile}}" -Raw | Invoke-Expression;' -WindowStyle 'Hidden'; + Start-Sleep -Seconds 10; """); break;