March 16, 200620 yr 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, 200620 yr by Tokyudo
March 26, 200620 yr 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 ?
Create an account or sign in to comment