Click here to get back home

Change user password with hash

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Change user password with hash Gaspar 03-02-2006
Posted by Gaspar on March 2, 2006, 11:52 am
Please log in for more thread options
I'm programming a Windows NT --> two --> Windows 2003 user sincronization
utility.
I have NT usernames and password hashes (that I get with pwdump2.exe) so I
need to know how to create in Windows 2003 the same user name with this
hash. I tried with the NetUserAdd api function but it only accepts a string
password as parameters.

Any ideas?
Thanks!



Posted by Skywing on March 2, 2006, 12:11 pm
Please log in for more thread options
If this is a domain scenario (or you can make the NT machine into a new
domain controller for a new domain), you should be able to synchronize user
accounts with domain replication if you join the Win2003 machine to the
domain and make it a domain controller. This may or may not be an option
for you, but I have used it in the past.

> I'm programming a Windows NT --> two --> Windows 2003 user sincronization
> utility.
> I have NT usernames and password hashes (that I get with pwdump2.exe) so I
> need to know how to create in Windows 2003 the same user name with this
> hash. I tried with the NetUserAdd api function but it only accepts a
> string password as parameters.
>
> Any ideas?
> Thanks!
>



Posted by Skywing on March 2, 2006, 12:13 pm
Please log in for more thread options
As a quick addition to this, you might have to upgrade the NT machine to
more recent OS first if it is not already a domain controller - as I recall,
the NT4 domain controller creation process wipes existing user accounts.

> If this is a domain scenario (or you can make the NT machine into a new
> domain controller for a new domain), you should be able to synchronize
> user accounts with domain replication if you join the Win2003 machine to
> the domain and make it a domain controller. This may or may not be an
> option for you, but I have used it in the past.
>
>> I'm programming a Windows NT --> two --> Windows 2003 user sincronization
>> utility.
>> I have NT usernames and password hashes (that I get with pwdump2.exe) so
>> I need to know how to create in Windows 2003 the same user name with this
>> hash. I tried with the NetUserAdd api function but it only accepts a
>> string password as parameters.
>>
>> Any ideas?
>> Thanks!
>>
>
>



Posted by Joe Richards [MVP] on March 18, 2006, 6:51 pm
Please log in for more thread options
Well let's put it this way. The way pwdump yanks the hashes out of the SAM isn't
a supported mechanism. You would need to find another unsupported mechanism to
shove them back in.

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm



Gaspar wrote:
> I'm programming a Windows NT --> two --> Windows 2003 user sincronization
> utility.
> I have NT usernames and password hashes (that I get with pwdump2.exe) so I
> need to know how to create in Windows 2003 the same user name with this
> hash. I tried with the NetUserAdd api function but it only accepts a string
> password as parameters.
>
> Any ideas?
> Thanks!
>
>

Similar ThreadsPosted
Q: Change password for a smart card user March 22, 2006, 6:28 am
Problem in Change Password! Password Recovery August 27, 2005, 1:24 am
Password Expired / Cannot Change Password May 9, 2006, 9:46 am
How to reset / change password age? December 9, 2005, 7:26 am
do not prompt for change password June 29, 2007, 10:39 am
CRL hash in CryptnetURLcache February 10, 2006, 3:31 pm
Grace Period to Change Password May 6, 2006, 4:07 pm
Web Browser Password Change Solution Needed September 13, 2007, 10:56 am
Changing the error message given on the "change password" action March 15, 2006, 10:31 am
recover encrypted file in windows XP after change password September 1, 2006, 2:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap