/build/static/layout/Breadcrumb_cap_w.png

Local Admin Passwrod

Can someone tell me do we have any Script to Run on all Client to change their Local Admin Password at once, I am now changing the Passwords manually and it takes lots of time to change it manually, I need to have a Script to Run and change all clients Administrator Password to what I want

0 Comments   [ + ] Show comments

Answers (9)

Posted by: jrscribner 13 years ago
Purple Belt
0
We have a similar problem here at the college I work for with 2000 PC it's a real nightmare,we just ordered our Kbox yesterday but I've been working with the demo version and one way to do it is to create an online script with the following commands:

Under Task 1 --> On Success
Launch a program...
Directory: SYS
File: cmd.exe
Parameters: /C net user administrator <password>

Run is as the Local System user and put your password in the <password> field and you will be set.

The only problem with this method is the password will be displayed in the KACE log so if that's a concern you would need a VB or AutoIt script to encrypt/decrypt the password.

Hope that helps
Posted by: sbequette 13 years ago
Orange Belt
0
pretty easy, what OS?
Posted by: afzal 13 years ago
Fourth Degree Green Belt
0
You can change the local admin account password using Kbox Scripting module, using the following VB Script, further you can unmark the comment by deleting [ ' ] to send password as command line argument / parameters. currently this script will change the Local Administrator Password to 'abcd' , Plz check is before applying it on production environment.

strComputer = "."
'strPassWord = WScript.Arguments(0)
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator")
objUser.SetPassword("abcd")
'objUser.SetPassword(strPassWord)

Let me know if you need any help regarding using the VB Script in Kbox

Comments:
  • I have followed the instructions in the blog using this script and get a failure. It appears from the log that the script is not launching the VBS script from a directory error. Thoughts? - daveyknits 10 years ago
  • I was on Training... Let me know if your problem solved or Not.... use complex password and try again - afzal 10 years ago
Posted by: afzal 13 years ago
Fourth Degree Green Belt
0
Visit my Blog in case you need any help in order to get the detailed 'Procedure to Run Vb Script File Using Kbox '

http://afzalyousufi.blogspot.com/
Posted by: nsaghar 12 years ago
Senior Yellow Belt
0
Dear Afzal,

I have tried what you said in your Blog, but I am not able to change Local Admin Password, the Kbox Successfully Push the Command and it says it successfully applied but again it doesnt work with new Pass, what I saw in the Running Script Log is as below
can you please help how to do it successfully

Log for 'Pass' on 'HR-ssahibzada-' [ Show All ]

--------------------------------------------------------------------------------

Started: Jun 28 2011 08:56:52 AM
Finished: Jun 28 2011 08:56:53 AM
Elapsed Time: 1 second
Status: 1


Output Log
Running As : SYSTEM
C:\WINDOWS\system32\cscript.exe
standard output:
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32\cscript.exe error output: C:\Program Files\KACE\KBOX\packages\kbots\115\ChPass.vbs(2, 1) Microsoft VBScript runtime error: Subscript out of range
C:\WINDOWS\system32\cscript.exe: process exited with code: 0
Activity Log
Launching program: C:\WINDOWS\system32\cscript.exe "C:\Program Files\KACE\KBOX\\packages\kbots\115\ChPass.vbs"
Posted by: nsaghar 12 years ago
Senior Yellow Belt
0
Its working now, thanks for your blog, actaully the problem was the I should have to put the complex pass, when i did it it worked nice,
Posted by: nsaghar 12 years ago
Senior Yellow Belt
0
Dear All,

the file is working well, but the only problem is that it it out a copy of the Script file in Kace PAckage Folder where every Client who know IT can track the password from the file, how to remove that file while our proccess is completed, anybody can help, I dont want that file to be there,
Posted by: cblake 12 years ago
Red Belt
0
I'd recommend compiling your script as an EXE, then use Kscripting to launch the EXE. There are many tools available for that, my personal favorite would be Admin Script Editor from iTripoli - very useful tool, I find personally.
Posted by: grch 12 years ago
Senior Yellow Belt
0
Hi nsaghar,

I may be thinking about this too simplistically but if you simply create a batch file and then simply as the last command delete it. That would work.

Make a batch file: Run.bat

net user administrator password
del run.bat

That would change the password to "password" as long as it abides by your password policy and then delete the batch file.

If you're using kace just make a batch file, hit save and it'll tell you the name of it and just add the del to that scripted batch file.

Again, it may be too simple but that's what I've done.

Greg
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

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

Sign up! or login

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