I am trying to figure out the syntax for creating a new local user with a pre-scripted pw and and the property to not allow pw to expire nor allowing user to change pw.
I have attached a picture of the properties I want.
Here is the code I have:
New-LocalUser "UserX" -Password $Password -PasswordNeverExpires:$tru
e "missing here the part about user cannot change pw"