Jump to content

Stupid question regarding


Recommended Posts

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 Owner

Maybe 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	passwordneverexpires

I 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 by Tokyudo
Link to comment
Share on other sites

  • 2 weeks later...

It's probably something simple that I'm overlooking
Indeed.

ウザーガイドを読みませんでしたか?

net accounts /maxpwage:unlimited

Also, '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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...