Script use: Create a user with a password, add user to group “Administrator“, with no expiring password

Change variable entries and run script as admin in PowerShell:

$password = ConvertTo-SecureString "password-here" –AsPlainText –Force 

$username = "username-here" 

$fullname = "fullname-here" 

$description = "description here" 

New-LocalUser -Name $username -Password $password -FullName $fullname -Description $description 

Add-LocalGroupMember -Group "Administrators" -Member $username 

Set-LocalUser -Name $username -PasswordNeverExpires 1