Script to change a local account password is not working
I have setup an online kscript to just change the local admin account on our machines. The account is called 'admin', and i have it setup for On Success, it would launch cmd.exe with the paramaters "net user admin password"
Launch “c:\windows\system32\cmd.exe” with params “net user admin password”.
I choose the machine I want to push it to and it says it completed successfully, however it does not actually change the password on the machine. Now if I open CMD as admin on the machine and run that same exact command, it changes the password. I have tried setting the Windows Run As to Local System as well as adding my admin domain credentials to no avail. Is there something I am missing or not doing correctly? I have a similar script in use that is for adding/removing users to the local admin group that works just fine.
Launch “c:\windows\system32\cmd.exe” with params “net user admin password”.
I choose the machine I want to push it to and it says it completed successfully, however it does not actually change the password on the machine. Now if I open CMD as admin on the machine and run that same exact command, it changes the password. I have tried setting the Windows Run As to Local System as well as adding my admin domain credentials to no avail. Is there something I am missing or not doing correctly? I have a similar script in use that is for adding/removing users to the local admin group that works just fine.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
rileyz
8 years ago