Skip to content

Commit

Permalink
Allow ‘SetComputerName.ps1’ script time to start
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneegans committed Dec 8, 2024
1 parent 263a4b5 commit 7f7585d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modifier/ComputerName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7f7585d

Please sign in to comment.