Categories
CLI Command Line Linux Net User Windows

Disable Windows Users From The Command Line

Whether in an Active Directory domain or standalone in a workgroup you can use this simple command line to disable one or more users.

net user <username> /active:no </domain>