Windows Admin & Service Desk: CLI Diagnostics, powercfg & Deep Cleanup
IT Service Desk & Windows Administration | SpecInfo v20 Standard | Reading time: 9 min
For field technicians, IT helpdesk specialists, and Windows fleet administrators, time is the ultimate resource. Instead of downloading questionable third-party software (registry cleaners or sketchy keyfinders), modern Windows systems include a battle-tested built-in CLI arsenal (PowerShell, DISM, powercfg, and netsh) capable of resolving 99% of workstation issues in seconds.
This master interactive reference equips you with production-grade commands for battery cycle telemetry, reclaiming gigabytes of disk space, hardware audit for IT asset recovery, and restoring corrupted system images.
1. Power Telemetry & Battery Diagnostics (`powercfg`)
Generate Battery Health & Cycle TelemetryPower
Exports an interactive HTML audit report presenting factory design capacity, full charge capacity, wear history, and lifetime cycle count.
7. Printers, Active Directory Domain & Corporate Helpdesk
๐ก Helpdesk Triage: Resolving AD Account Lockout Loops
When a user's domain account locks out immediately after being unlocked by IT, the root cause is almost always a background secondary device (a mobile phone with a cached expired password trying to sync Exchange/ActiveSync or Wi-Fi 802.1X, or a stale mapped SMB share sending bad NTLM handshakes).
For End Users: Wait 15โ30 mins (GPO lockout threshold window). For urgent offline tasks, disconnect Ethernet and turn off Wi-Fi โ you can log in locally using cached credentials (CachedLogonsCount).
For Administrators: Unlock the account via Unlock-ADAccount and inspect the Caller Computer Name attribute in Event ID 4740 in Section 8 below.
Stops the Windows Print Spooler service, force-deletes all corrupt/locked print job files (*.spl and *.shd) from disk, and restarts the service cleanly.
net stop spooler && del /Q /F /S "%systemroot%\System32\Spool\Printers\*.*" && net start spooler
Printer Offline Fix: Migrate from WSD to Static TCP/IP PortPrinters
Eliminates the common issue where network printers intermittently enter "Offline" status due to WSD protocol timeouts. Creates a Standard TCP/IP port and attaches the printer immediately.
Advanced Print Server Properties & Driver RemovalPrinters
Directly opens the Print Server Drivers dialog (bypassing freezing Windows Settings and Control Panel applets) to permanently remove corrupted driver packages.
Prevents buggy vendor printer drivers from crashing the entire system spooler service by isolating the driver in a dedicated sandbox process (Shared or Isolated).
Fix Shared Print Server Connection Error (Code 0x0000011b)Printers
Resolves shared network printer connection failures caused by PrintNightmare RPC authentication level hardening updates on Windows Server and client machines.
reg add "HKLM\System\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f && net stop spooler && net start spooler
Repair Broken Active Directory Domain Trust (Secure Channel)AD Domain
Fixes "The trust relationship between this workstation and the primary domain failed" in seconds without unjoining the domain or rebooting.
Reset Local User Password & Unlock Account (net user)Access & Accounts
Instantly assigns a new password to a local user account and removes lockout flags. Note: On domain-joined PCs, specify dot prefix to log in locally: .\Username.
net user "Username" "NewPassword123!" /active:yes
Unlock Domain User Account (Unlock-ADAccount)AD Domain
Instantly removes account lockout restrictions in Active Directory via PowerShell (or cmd: net user username /active:yes /domain).
Unlock-ADAccount -Identity "target_username"
Inspect Bad Password Count & Lockout Status in DomainAD Domain
Queries the Domain Controller for bad password attempt counters, lockout state, and password expiration timestamp for targeted accounts.
net user "target_username" /domain
Force Password Change at Next User LogonAccess & Accounts
Mandates that the user must immediately update their temporary password to a confidential credential upon authenticating to the machine.
๐ฌ Need Zero-Footprint Hardware Telemetry in Your Browser?
No need to install third-party benchmark tools on audited hardware. Launch the SpecInfo Core diagnostic engine to test displays, batteries, keyboard matrices, and audio sensors directly online: