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 }