Jump to content

Recommended Posts

Posted

I have this line in a batch file:

net user USER PASSW /ADD /passwordchg:no

I want to add the following switches.

/passwordreq

/usercomment

/fullname

/expires

The problem I have is everytime I add more to the line:

net user USER PASSW /ADD /passwordchg:no /expires:never

They do not work. Do I have to do it on separate lines? Help please.


Posted

There should be no reason I can think of why you shouldn't be able to put it all together in one command.

NET USER UserName U5er_Pa55w0rd /ADD /PASSWORDREQ:YES /USERCOMMENT:"Your comment" /FULLNAME:"Forename Surname" /PASSWORDCHG:NO /EXPIRES:NEVER

If it doesn't work you may need to supply us with more information.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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