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)
Please log in to answer
Posted by:
jrscribner
13 years ago
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
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:
afzal
13 years ago
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
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 11 years ago
-
I was on Training... Let me know if your problem solved or Not.... use complex password and try again - afzal 11 years ago
Posted by:
afzal
13 years ago
Posted by:
nsaghar
13 years ago
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"
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
13 years ago
Posted by:
nsaghar
13 years ago
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,
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
13 years ago
Posted by:
grch
13 years ago
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
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.
so that the conversation will remain readable.