/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Script to change a local account password is not working

11/17/2016 1355 views
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. 
0 Comments   [ + ] Show comments

Comments


All Answers

1
Have you tried with the params below, I think you need the /c to tell cmd your sending it a command. Im not sure how KACE works, so not sure if this appends the /c for you or not.

/C net user admin password
Answered 11/18/2016 by: rileyz
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ