Geforcer Posted January 18, 2005 Share Posted January 18, 2005 I put the command to set the passwords for unlimited expiration time, and they won't set. It won't even set them to not expire if i try putting it in the cmd prompt. For some reason, it'll only work if I do it manually for each account. Any suggestions? I need to get a workable Unattended Installation CD with accounts that won't expire. Thanks Link to comment Share on other sites More sharing options...
Geforcer Posted January 18, 2005 Author Share Posted January 18, 2005 Bump Link to comment Share on other sites More sharing options...
bucketbuster Posted January 18, 2005 Share Posted January 18, 2005 This is what I put in my useraccouts.cmd and it works:net user "UserName" /add /EXPIRES:NEVERnet localgroup Administrators "UserName" /addREGEDIT /S autologon.regEXIT Link to comment Share on other sites More sharing options...
Yzöwl Posted January 19, 2005 Share Posted January 19, 2005 /EXPIRES:{date | NEVER}dateAn expiration date is in the form mm/dd/yy(yy). Months can be a number, spelled out, or abbreviated with three letters. Year can be two or four numbers.Use slashes(/) (no spaces) to separate parts of the date.NEVERSets no time limit on the account. Link to comment Share on other sites More sharing options...
Cartoonite Posted January 19, 2005 Share Posted January 19, 2005 This is the line I have in my user-creation script that sets an unlimited password age:net accounts /maxpwage:unlimitedIf this line does not exist in yours, I suggest adding it and trying again. I believe all other replies are making reference to an actual expiration date for the account, not the passwords. (That is, whether or note the account should be disabled after a certain date.)Hope this helps. Link to comment Share on other sites More sharing options...
Geforcer Posted January 19, 2005 Author Share Posted January 19, 2005 This is the line I have in my user-creation script that sets an unlimited password age:net accounts /maxpwage:unlimitedIf this line does not exist in yours, I suggest adding it and trying again. I believe all other replies are making reference to an actual expiration date for the account, not the passwords. (That is, whether or note the account should be disabled after a certain date.)Hope this helps.this is the one i used, and it doesn't work for me. even running manually from the cmd prompt. i'll try the other listed above and see if it works. thanks for the replies. Link to comment Share on other sites More sharing options...
wolfshade Posted January 19, 2005 Share Posted January 19, 2005 if those don't work just search the current forum for a "netuser" tool and use it like this :netuser username /pwnexp:ythis app comes from sysinternals i believe but its posted in here somewhere for download. Link to comment Share on other sites More sharing options...
Geforcer Posted January 19, 2005 Author Share Posted January 19, 2005 if those don't work just search the current forum for a "netuser" tool and use it like this :netuser username /pwnexp:ythis app comes from sysinternals i believe but its posted in here somewhere for download.wow, thanks alot!!! this netuser tool did the trick Link to comment Share on other sites More sharing options...
durex Posted January 20, 2005 Share Posted January 20, 2005 ::edit::after pawing through thread after thread of people mentioning this tool, but simply saying to search for it... i finally found an actual link http://www.jsiinc.com/dl/NETUSER.EXE Link to comment Share on other sites More sharing options...
clair Posted January 20, 2005 Share Posted January 20, 2005 wow this is what i need!!!how to add a new user on my winnt.sif file can someone tell me thatand user dont need any password!!! Link to comment Share on other sites More sharing options...
Cartoonite Posted January 20, 2005 Share Posted January 20, 2005 Users are not added through WINNT.SIF, that I know of. I use a useraccounts.cmd script file to add them from cmdlines.txt.net user Username password /addnet localgroup Administrators Username /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITIf you leave out the password from the "net user add" line, the user will be created without a password. Like so:net user Username /addHope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now