My script creates a local user, but the created account has a bunch of weird symbols and characters
A little lost on this one. I have a batch file that creates a local account, and then assigns it to Administrators.
The account gets created, but has symbols like @$^ and foreign currency symbols added to it, so I can't log in with the account.
Here's my script:
net user “localadmin” “Password1” /add
net localgroup Administrators “localadmin” /add
WMIC USERACCOUNT WHERE “Name=‘user’” SET PasswordExpires=FALSE
WMIC USERACCOUNT WHERE “Name=‘user’” SET Passwordchangeable=FALSE
When I check in Computer Management after running the script, I see the account created as something like
$^localadmin@¥
Anyone know what could be causing this?