Tokyudo Posted March 16, 2006 Share Posted March 16, 2006 (edited) I've made many successful unattended DVDs and this is something that's not a big issue but it's starting to bug me.I unattendedly create my default user via a batch file that's run from [GUIRunOnce].Example of my code:net user Owner /add /comment:"Administrator" /FullName:"Owner"NET LOCALGROUP /add administrators OwnerMaybe this is a totally stupid question but how do I set Owner to never have the password expire?When I work with domains, I typically use cusrmgr.exe to set passwords to never expire. For example:cusrmgr -u owner +s passwordneverexpiresI tried to incorporate that method into my DVD. I created a batch containing the above code and I made sure cusrmgr.exe was in the right location. I called the batch from the original [GUIRunOnce] batch file. However, it doesn't work. Am I going about the wrong way? It's probably something simple that I'm overlooking.Well, any help would be greatly appreciated. Thanks. Edited March 16, 2006 by Tokyudo Link to comment Share on other sites More sharing options...
Tokyudo Posted March 26, 2006 Author Share Posted March 26, 2006 Bump. Link to comment Share on other sites More sharing options...
Djé Posted March 26, 2006 Share Posted March 26, 2006 It's probably something simple that I'm overlookingIndeed.ウザーガイドを読みませんでしたか?net accounts /maxpwage:unlimitedAlso, 'Owner' is the default user (administrator) if you don't create any user (and skip OOBE). So why bothering recreating it ? 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