From 2c22a4d0da30cc103f265ff8595a2dcef254669d Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 23 Oct 2023 12:16:24 +0000 Subject: [PATCH] Update setupScriptInfo.ps1 --- setupScriptInfo.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupScriptInfo.ps1 b/setupScriptInfo.ps1 index af25652..b38c86b 100644 --- a/setupScriptInfo.ps1 +++ b/setupScriptInfo.ps1 @@ -53,7 +53,7 @@ if ($(Get-LocalUser -Name $username -ErrorAction SilentlyContinue) -eq $null) { New-LocalUser -Name $username -Description "New User Account" -Password $SecurePassword -PasswordNeverExpires -UserMayNotChangePassword } else { Write-Host "User $username already exists. Configuring the user..." - Set-LocalUser -Name $username -PasswordNeverExpires $true -UserMayChangePassword $false -Password $SecurePassword + Set-LocalUser -Name $username -PasswordNeverExpires $true -Password $SecurePassword }