January 18, 200521 yr 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
January 18, 200521 yr 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
January 19, 200521 yr /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.
January 19, 200521 yr 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.
January 19, 200521 yr Author 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.
January 19, 200521 yr 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.
January 19, 200521 yr Author 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
January 20, 200521 yr ::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
January 20, 200521 yr 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!!!
January 20, 200521 yr 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.
Create an account or sign in to comment