Given domain credentials with the appropriate permissions, and an incident response workstation with RSAT or local admin tools available.
Operator Note: Local Administrator accounts on workstations are a well-known target for attackers. These accounts should be disabled or removed when possible to reduce lateral movement and persistence.
Workstation Local Administrator account is either disabled or has been renamed and removed from all local privileged groups, reducing risk of abuse.
gpmc.msc
Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options
Accounts: Administrator account status → Disabled
gpupdate /force
Operator Note: Only link to Workstation OU, not Servers or Domain Controllers.
For individual machines or small groups:
net user administrator /active:no
Operator Note: This disables the local administrator account immediately.
Disable-LocalUser -Name "Administrator"
Operator Note: PowerShell method requires PowerShell 5.1+ and is useful for scripting.
# Disable Local Administrator on a remote workstation
Invoke-Command -ComputerName Workstation01 -ScriptBlock {
Disable-LocalUser -Name "Administrator"
}
Operator Note: Use with caution. Use GPO for fleet-wide, consistent deployment.
Disable-LocalUser command (optional method)| Tool | Platform | Use Case |
|---|---|---|
| Group Policy Management Console (GPMC) | Windows | Preferred method to disable local admin accounts across all workstations |
| Net User (cmd) | Windows | Simple and quick disable |
| PowerShell (Disable-LocalUser) | Windows | Scripted and remote disable |
| LAPS (Local Administrator Password Solution) | Windows Enterprise | Recommended to manage local admin passwords and eliminate shared password usage |
net user administrator.Windows 7 Security Technical Implementation Guide
Enable / Disable Administrator account
Creating Group Policy Object
| Date | Version | Description | Author |
|---|---|---|---|
| 2025-05-02 | 2.0 | Full original + expanded operator methods (GPO, CLI, PowerShell), best practices, alternate tooling and checklist | Leo |