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

Comments

Please log in to comment

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

Answers

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
Answered 04/20/2011 by: jrscribner
Purple Belt

Please log in to comment
0
pretty easy, what OS?
Answered 04/20/2011 by: sbequette
Orange Belt

Please log in to comment
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
Answered 04/21/2011 by: afzal
Fourth Degree Green Belt

  • 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?
  • I was on Training... Let me know if your problem solved or Not.... use complex password and try again
Please log in to comment
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/
Answered 04/21/2011 by: afzal
Fourth Degree Green Belt

Please log in to comment
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"
Answered 06/27/2011 by: nsaghar
Senior Yellow Belt

Please log in to comment
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,
Answered 06/27/2011 by: nsaghar
Senior Yellow Belt

Please log in to comment
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,
Answered 06/27/2011 by: nsaghar
Senior Yellow Belt

Please log in to comment
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.
Answered 06/27/2011 by: cblake
Red Belt

Please log in to comment
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
Answered 06/30/2011 by: grch
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity