Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Using Deployment Solution to Reset Local User Account Passwords

Updated: 07 Jul 2008 | 4 comments
Antonp's picture
0 0 Votes
Login to vote

Resetting a local user account on one or more computers on your network, whether they are in a domain or workgroup, using Altiris Deployment Solution is very simple.

Making use of Micrsoft's commands to create a script that will do this for you.

Here's how:

  1. Create a new "Run Script Job" in your DS console.
  2. Run this script:
    net user 'account' 'password'
    
    

    (do not use the inverted commas, but replace the content inside with the account and password that you need)

  3. Drag and drop this job on the selected computers of your choice in DS console.
  4. Password is now changed.

For more comments on how to do this see the knowledgebase article on Microsoft KB Site: Article ID: 251394

Comments

johnquinn's picture
07
Jul
2008
0 Votes 0
Login to vote

The Local Security Solution does this as well

If I remember correctly, this feature is built into the LSS.

But since this is a separate product that you would have to purchase, then this solution is the next best way to do that.

I have implemented this in my imaging process where I set the password because my image has no password on the administrator account at first.

Bill Conti's picture
21
Aug
2008
0 Votes 0
Login to vote

Changing local password

I came up with a little VB script that you can use to change any local password. Just insert your info and run the script on the computer (s) you want to change.

strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/***put the user name here***, user")

objUser.SetPassword "****put your new password here***"
objUser.SetInfo

setral's picture
21
Aug
2008
0 Votes 0
Login to vote

This is the exact script

This is the exact script that we use when we need to reset a password, it works wonderfully just edit the file script and run it against a PC, and you're done.

It came in handy after some users were able to change the local admin password.

johnquinn's picture
21
Aug
2008
0 Votes 0
Login to vote

Here is something else you can do

Along the lines of the comments made by setral, if they can change the local admin password, it is likely they could remove the Domain Admins group from the local Administrators group (I have had this happen to me).

So I did some digging and found the lines you could add to this script to add domain accounts or groups into the group.

Here is the code:

Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")
Set objUser = GetObject("WinNT://insert your domain/insert group to add")
objGroup.Add(objUser.ADsPath)

Works like a champ.