π User & Group Management
πΉ Check all users: net user
πΉ Check user details: net user username
πΉ Add a new user: net user NewUser Password123 /add
πΉ Add user to local admin group: net localgroup Administrators NewUser /add
πΉ Remove user from a group: net localgroup Administrators NewUser /delete
πΉ Delete a user account: net user NewUser /delete
π System Information & Performance
πΉ Check system info: systeminfo
πΉ View running processes: tasklist
πΉ Kill a process by name: taskkill /IM processname.exe /F
πΉ Check disk usage: wmic logicaldisk get name, freespace, size, description
πΉ Check RAM details: wmic MEMORYCHIP get BankLabel, Capacity, Speed
πΉ Check network configuration:ipconfig /all
πΉ Flush DNS cache: ipconfig /flushdns
π Network & Remote Management
πΉ Ping a server: ping google.com
πΉ Check open ports: netstat -an | find "LISTEN"
πΉ Test remote connection (RDP): mstsc /v:RemotePCName
πΉ Enable RDP remotely: reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
π File & Disk Management
πΉ List all drives: wmic logicaldisk get name
πΉ Check disk health (SMART): wmic diskdrive get status
πΉ Check file size in a folder: dir /s /a C:\YourFolder
πΉ Find large files (over 1GB): forfiles /S /M *.* /C "cmd /c if @fsize GEQ 1073741824 echo @path @fsize"
π Active Directory & Domain Management
πΉ Check domain details: nltest /dsgetdc:yourdomain.com
πΉ List all domain users: net user /domain
πΉ Force Group Policy update: gpupdate /force
πΉ Check AD replication status: repadmin /replsummary
π Security & Event Logs
πΉ Check failed login attempts: wevtutil qe Security /c:10 /f:text /q:"*[System[(EventID=4625)]]"
πΉ Enable BitLocker on drive C: manage-bde -on C: -RecoveryPassword
πΉ Check Windows Defender status: sc query windefend
π Why Every System Admin Should Use These Commands?
β Saves time β No need to navigate through GUI
β Troubleshoot quickly β Identify & fix issues in seconds
β More control β Perform advanced tasks efficiently