I just discovered today that there is a /random parameter that you can pass to the net user command.
C:>net user test /add /random Password for test is: gLsaP_QHWell isn’t that convenient! Now answer me this - why is there absolutely no mention of this in the “net help user” documentation? Please, Microsoft, proper documentation would make our lives so much easier.The command completed successfully.
Note that I’ve spent almost an entire day of experimenting with the previously undocumented NtQuerySystemInformation API, so I may be mildly bitter. grin
I should note that a search on Google for “net user * /random” nets only 122 results.