Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm issuing some "net user" commands to setup a local user on my desktop for some testing purposes and require setting a password longer than 14 characters. In doing so Windows barks back a propmt to confirm the long password, and I'm wondering if anyone knows how to suppress that prompt and force the long password to be set. You can see the prompt I'm speaking of by issuing the following command...

net user MyUser MyPasswordIsReallyLong /ADD

It triggers the following prompt

The password entered is longer than 14 characters. Computers with Windows prior to Windows 2000 will not be able to use this account. Do you want to continue this operation? (Y/N) [Y]:

Also, could one of the more senior members help create the following tag: net-user

share|improve this question

migrated from stackoverflow.com Nov 28 '12 at 7:49

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Apparently you can add

/Y

and the shell knows to interpret that as supplying a default answer of "yes" to the prompt.

net user MyUser MyPasswordIsReallyLong /ADD /Y
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.