idle.newbie Posted October 19, 2004 Share Posted October 19, 2004 for those owned cusrmgr from w2k resKitcusrmgr -u userName -s PasswordNeverExpires +s MustChangePassword Link to comment Share on other sites More sharing options...
prathapml Posted November 15, 2004 Author Share Posted November 15, 2004 UPDATE:The VBscript above (by shuter) works fine with XP Pro, but not Home Edition.Any ideas how to do the same for home edition as well?@BenjaminWell, if the little tool can work in XP home, I'm game for it.If the cusrmgr.exe can do what I want, on XP home, then could someone please post a link to download it? (if its legitimate) Link to comment Share on other sites More sharing options...
urgan Posted November 16, 2004 Share Posted November 16, 2004 Here you go, I think I got it in one of those sites that have all the resource kits tools.My understanding is if you have a legitimate license you can grab it from the net.Edit:Sorry, uploading doesn't seem to be working for me.Edit 2:where i got itcusrmgr.zip Link to comment Share on other sites More sharing options...
prathapml Posted November 16, 2004 Author Share Posted November 16, 2004 Finally, I got the cusrmgr.exe !But the sad news is, it doesn't work with XP home - could it be bcos the home edition does not support the required management features? It works fine with XP pro.So now, the search is still on - how to set a user's password to "change at next logon" on XP home? Link to comment Share on other sites More sharing options...
my2001 Posted November 16, 2004 Share Posted November 16, 2004 edit: (deleted by me) Link to comment Share on other sites More sharing options...
RogueSpear Posted November 16, 2004 Share Posted November 16, 2004 @prathapml I really don't know too much about Home edition, but from what you have written above I'm guessing that there is no support for ADSI at all. Even though you are binding to the local SAM, ADSI is actually the mechanism behind the account changes. This would also explain why cusmgr isn't working. Link to comment Share on other sites More sharing options...
prathapml Posted November 28, 2004 Author Share Posted November 28, 2004 I'm still searching for a way to set these settings on XP home! (the VBscript by shuter works fine with XP pro, though).Okay, I'm back with a new update on this issue.Since I execute the command to set pwnexp (password-never-expires) - the above VBscript by shuter doesn't work anymore. What is the VBscript to:1. Remove the check-mark from "Password never expires".2. Enable "User cannot change password" for a specified user.Below is a screenshot of the current (messy) situation I'm having. The screenshot is about the properties of a certain user, from User Management MMC. Screenie taken, so that my above question can be illustrated (by showing what boxes I want to check/uncheck). Link to comment Share on other sites More sharing options...
Wavey_Dave_76 Posted January 16, 2005 Share Posted January 16, 2005 Dunno if you are still looking for a way of doing this but after ages of trying to find a way of bringing up the password change box from rundll32 or something equally as complicated. I gave up...I have thought of a way round it though. If the user creation cmd file is changed to add date changes either side of it, ie.set CURRENT = %DATE%DATE 01/01/1980;Add all the users as normalDATE %CURRENT%Then during cleanup right at the end the maximum password age policy can be set to a day. When the PC reboots it should say the password has expired and force a password change. A final runonceex can be put in to put the policy back to the required setting after the login so it wont ask every day.I havent tested this in an install but I have followed it all through manually and it worked fine. Dont think it will work for the administrator logon though. Link to comment Share on other sites More sharing options...
prathapml Posted January 16, 2005 Author Share Posted January 16, 2005 Thanks Wavey_Dave_76,That's a good idea. But a simpler solution would be nice!Well, if nothing else turns up I'll do the above. Link to comment Share on other sites More sharing options...
Obliviator Posted January 17, 2005 Share Posted January 17, 2005 It's actually either a key in HKLM\SAM or HKLM\SECURITY. Both are protected so you dont really have way of accessing it directly. Link to comment Share on other sites More sharing options...
Idontwantspam Posted December 8, 2007 Share Posted December 8, 2007 Well, this is an ancient thread, but I'm having some issues here with this same thing. I want to force the administrator account to change its password at the first logon. So, I put in my commands.txt cusrmgr -u userName -s PasswordNeverExpires +s MustChangePasswordWhen I log on, the box is checked, however, it doesn't require a change password, it only says:Your password expires today. Do you want to change it now?But a day later... and another day after that.... still not being forced. Any idea why and how I can fix this?P.S. This is on a windows xp professional unattended install. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now