lubinski Posted September 16, 2008 Share Posted September 16, 2008 I have this line in a batch file:net user USER PASSW /ADD /passwordchg:noI want to add the following switches./passwordreq/usercomment/fullname/expiresThe problem I have is everytime I add more to the line:net user USER PASSW /ADD /passwordchg:no /expires:neverThey do not work. Do I have to do it on separate lines? Help please. Link to comment Share on other sites More sharing options...
Yzöwl Posted September 16, 2008 Share Posted September 16, 2008 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:NEVERIf it doesn't work you may need to supply us with more information. Link to comment Share on other sites More sharing options...
lubinski Posted September 16, 2008 Author Share Posted September 16, 2008 The command completes successfully but anything after the first switch, /passwordreq:Yes does not work. 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