Showing posts with label ITAutomation. Show all posts
Showing posts with label ITAutomation. Show all posts

Tuesday, 8 April 2025

Must-Know CMD Commands for System Administrators

πŸ“Œ 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

Step-by-Step Guide to Changing the Microsoft 365 Apps Update Channel | Microsoft Configuration Manager

Managing the update channels for Microsoft 365 Apps is crucial for IT administrators aiming to control the deployment of new features and up...