IncidentResponsev2

Change or Disable Workstation Local Administrator Account

Task Change or Disable Workstation Local Administrator Account

Conditions

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.

Standards

End State

Workstation Local Administrator account is either disabled or has been renamed and removed from all local privileged groups, reducing risk of abuse.


Notes


Manual Steps

Method 1: Group Policy (Preferred)

Open Group Policy Management Console (GPMC)

gpmc.msc

Create a new Group Policy Object (GPO):

Computer Configuration → Windows Settings → Security Settings → Local Policies → Security Options

Set the following policy:

Accounts: Administrator account status → Disabled
gpupdate /force

Operator Note: Only link to Workstation OU, not Servers or Domain Controllers.


Method 2: Command Line (Net User)

For individual machines or small groups:

net user administrator /active:no

Operator Note: This disables the local administrator account immediately.


Method 3: PowerShell (Alternate)

Disable-LocalUser -Name "Administrator"

Operator Note: PowerShell method requires PowerShell 5.1+ and is useful for scripting.


Running Script

# 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.


Dependencies


Other Available Tools

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

Operator Recommendations and Additional Tools

Operator Checklist

Best Practices


References

Windows 7 Security Technical Implementation Guide
Enable / Disable Administrator account
Creating Group Policy Object


Revision History

Date Version Description Author
2025-05-02 2.0 Full original + expanded operator methods (GPO, CLI, PowerShell), best practices, alternate tooling and checklist Leo