Here is how to use the Net User command in Windows to Enable or disable users from the command line. As an example, let’s say I want to enable the Guest account, for some basic peer-to-peer sharing. I would run the following command.
Net user Guest /active:yes
If I wanted to disable the same user I would type:
Net user Guest /active:no