Disabeling workgroup users via cmd line?

bigstusexy

2[H]4U
Joined
Jan 28, 2002
Messages
3,194
Anyone know of a way to disable a user via the command line? This isn't a domain just a workgroup and I'd love if I could automate this.

I know how I can add/delete users just not disable/enable them.
 
Windows is just like Linux, to get the most out of it you need to understand the command line.... shame they keep it all very under cover and don't make a lot of the commands easy to access.

This is a nice one, I didn't know this one. Thanks.
 
Gosh I hate unlisted commands!

Found it
http://support.microsoft.com/kb/251394

net user [username] /active:no


(/active:yes to enable)

Unlisted, not exactly. Its been around since Windows NT 3.1. And its in the first item that comes up if you search in Vista help for "Command line". :rolleyes:

Windows button>Help>Command line>Command-line reference for IT Pros

You are right. It is hidden. In the help file no one uses. :)
 
Hi nessus

Here is what I mean:
Get yourself XP SP3

Go to the command window and type net user /?
Tell me what it says about the /activated option.
 
Hi nessus

Here is what I mean:
Get yourself XP SP3

Go to the command window and type net user /?
Tell me what it says about the /activated option.

Thats pretty common though, most command line tools do not have good embedded help info. Whether it be windows, linux, or some other CLI.
 
Tell me about it, it peeves me off when it something that I need yet I didn't know it was there in a command I thought I knew well. Then there are things I didn't now about like this guy

rundll32 printui.dll,PrintUIEntry /?

Can get pretty useful at time!
 
Back
Top