Requests for Automation

Create and Disable Local User account

I'm looking for a procedure to create / disable local user accounts.

Discussion
Gravatar for Matthew Decker
Matthew Decker 10 months ago

I don't know if there was ever a resolution to do this. If you wanted to be able to create specific users/passwords on a local machine, using the above commands with a GET variable set to prompt would allow you to do this net user #usernamevariable# #passwordvariable# /Add

Gravatar for Jonathan Haase
Jonathan Haase 11 months ago

This should be a relatively easy one to do with a simple execute command line.
For creating a local user you are basically just looking at running
net user /Add
What additional options are available can be found by running net help user add from a command line.
Disabling a local user is as simple
net user /active:no

Details

  • 1 Vote
  • 2 Comments
  • Open for 11 months
  • Created by Justin Bragg