HOME BLOGS ABOUT CONTACT

Essential PowerShell Commands Every Windows & Network Administrator Must Know

tania andrew Suresh Thapa
| 23 Aug, 2025 | 801 views
0
0
Essential PowerShell Commands Every Windows & Network Administrator Must Know

Mastering PowerShell is a game-changer for system and network administrators. From managing users, services, and processes to monitoring networks, Active Directory, and automating tasks, these essential PowerShell commands will save you time, boost efficiency, and make troubleshooting easier. This guide covers the most important commands every Windows and network admin should have in their toolkit.

 

Here’s a practical list of PowerShell commands that every Network and Windows Admin should know. I’ll group them by category so you can use them as a reference/cheat sheet:

 

System Info & Basics

CommandDescription
Get-ComputerInfoShow detailed system information (OS, BIOS, hardware).
Get-CommandList all available PowerShell commands.
Get-Help <cmd>Get help/documentation for a command.
Get-ExecutionPolicyCheck script execution policy.
Set-ExecutionPolicy RemoteSignedAllow running local scripts.

 

User & Group Management

CommandDescription
Get-LocalUserList local users.
Get-LocalGroupList local groups.
Get-LocalGroupMember "Administrators"Show group members.
New-LocalUser "TestUser" -Password (Read-Host -AsSecureString)Create new user.
Add-LocalGroupMember -Group "Administrators" -Member "TestUser"Add user to group.
Remove-LocalUser "TestUser"Delete local user.

 

Process & Service Management

CommandDescription
Get-ProcessList running processes.
Stop-Process -Name notepadKill a process.
Get-ServiceList all services.
Start-Service SpoolerStart Print Spooler service.
Stop-Service SpoolerStop Print Spooler service.
Restart-Service SpoolerRestart a service.

 

Networking

CommandDescription
Get-NetIPAddressShow IP addresses.
Get-NetIPConfigurationShow IP, DNS, Gateway.
Test-Connection google.comTest connectivity (like ping).
Test-NetConnection google.com -Port 443Test specific port.
Get-NetAdapterShow network adapters.
Get-NetTCPConnectionShow active TCP connections.

 

Active Directory (AD)

CommandDescription
Import-Module ActiveDirectoryImport AD module.
Get-ADUser -Filter * | Select Name,EnabledList AD users.
Get-ADGroup -Filter *List AD groups.
Get-ADComputer -Filter *List AD computers.
New-ADUser -Name "John Doe" -Enabled $trueCreate new AD user.
Add-ADGroupMember -Identity "Domain Admins" -Members jdoeAdd user to group.

 

File & Folder Management

CommandDescription
Get-ChildItem C:\List files/folders (like dir/ls).
Copy-Item C:\file.txt D:\Copy file.
Move-Item C:\file.txt D:\Move file.
Remove-Item C:\file.txtDelete file.
Get-Content C:\log.txtRead file content.
Set-Content C:\file.txt "Hello World"Write to file.

 

Event Logs & Monitoring

CommandDescription
Get-EventLog -LogName System -Newest 20Show latest system logs.
Get-WinEvent -LogName Security | Where {$_.Id -eq 4625}Show failed logins.

 

Remote Management

CommandDescription
Enter-PSSession -ComputerName Server01Connect to remote machine.
Invoke-Command -ComputerName Server01 -ScriptBlock {Get-Service}Run command remotely.
Get-WmiObject Win32_OperatingSystem -ComputerName Server01Get OS info remotely.

 

Security & Firewall

CommandDescription
Get-NetFirewallProfileShow firewall profiles.
Get-NetFirewallRuleList firewall rules.
New-NetFirewallRule -DisplayName "Allow ICMP" -Protocol ICMPv4 -Action AllowAllow ping in firewall.

 

Updates & Patching

CommandDescription
Get-WindowsUpdateLogView update log.
Install-WindowsUpdate -AcceptAll -AutoRebootInstall updates (requires PSWindowsUpdate module).

 

Pro Tip:

  • Use Get-Help <command> -Examples to see real usage examples.
  • Use Get-Command *keyword* to discover related commands.
  • For automation, combine with pipelines | and filtering (Where-Object, Select-Object).

 

 

Tags:

Powershell Windows

Comments

Please login to leave a comment.

No comments yet. Be the first to comment!