From fd3df6110e14fc46979f33c0e7af39e2a1a6cc3c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 23 Jun 2023 14:04:39 +0200 Subject: [PATCH] Reboot after creating a new user --- scripts/Windows/OS/User.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index ad09d99e..53428caf 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -30,5 +30,6 @@ function New-PersonalUser([Context] $context) Rename-LocalUser $user $context.UserName; Add-LocalGroupMember -Group "Administrators" -Member $user && Set-LocalUser $context.AdminName -Password (ConvertTo-SecureString -AsPlainText "Admin"); + $context.Reboot(); } }