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.

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...