Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I often need to log in with a user's domain account to make sure that I've set up their profile correctly, but there's no easy way to do this other than to call them and give them a temp pass and force them to change it (bad, since they often forget it,) or ask for their password (worse.)

Is there any way to change a user's password, then set it back to the original later? I tried to see if there was any way to get the NTLM hash so I could set it back later, but there doesn't seem to be a facility for that built into AD.

share|improve this question

migrated from superuser.com May 28 '10 at 17:42

This question came from our site for computer enthusiasts and power users.

    
I would think this question belongs in ServerFault.com. I think if such a feature exists, it would be an auditing/security risk. –  Knox May 28 '10 at 12:37
    
Well, I know it's possibly under Linux (at least locally) by copying the line from /etc/shadow and keeping a backup of it. I don't know if Windows has an equivalent option without having to be in Safe Mode or booting off of another partition. –  Jordan Milne May 28 '10 at 13:15
    
ServerFault indeed. –  icelava May 28 '10 at 13:48

2 Answers 2

up vote 1 down vote accepted

In Windows XP, right click on the My Computer icon and choose Properties. In the dialog box that opens, choose the Advanced tab. There will now be a User Profiles button. Click that and you should be able to choose your user's profile from a list. Click the Copy To button. On the dialog that opens, there's an option to give other people access to log on to a profile. You have to copy it back and forth a couple times and you need to own two user accounts, but you can use this to tweak a user's profile without knowing their password.

First, copy the other user's profile to the folder your alternate user account would use, taking care to give that account access to log on the profile. Log on with that account and do whatever you want to the profile. Then, log back on with your original account and delete the user's original profile. Now copy the profile changed by your alt account back to it's original location, taking care to give the original user access to the profile again.

If this is for a new computer setup, where the original user has never logged in, you can do this copying your nicely configured profile over the default profile.

It's worth noting that this answer is only any good because you tagged the question windows-xp. The process no longer works on Windows 7, as there are some registry settings that are not handled very well by the copy profile process. Rather than updating the Copy Profile process, Microsoft chose to simply disable the Copy button. You can find hacks to re-enable it, but none of the fix the reason the button was disabled and so they should be avoided.

share|improve this answer
    
ha! your username here is much better than that lame "Coehoorn" thing you use everywhere else... ;) –  quack quixote May 28 '10 at 17:44
    
@quack~ glad someone appreciates it –  Joel Coel May 29 '10 at 3:49
    
This should be a much better solution than what I had in mind :) –  Jordan Milne May 30 '10 at 5:53

You can't restore a previous password without doing a restoration of the AD object (and it's not obvious nor usable for a daily use).

You may force the temporary password several times (exactly "Number of password remembered") so that the user could change his password to the value he used before your changes. I think you could do it with a script if the "Number of password remembered" is high.

This way, you don't have to know his password, and he won't forget his "new" password. But you still have to call him to tell him his "temp" password.

En batch :

FOR /L %B IN (1,1,<num>) DO NET USER <user> <tmppassword> /DOMAIN

where is the number of remembered passwords in your AD group policy, is the username (pre-windows 2000), and is the temporary password given to your user.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.