Top 50 Powerful PowerShell Commands Every IT Admin Should Know

For Daily Uses and Beginners

PowerShell is a must-have tool for system administrators, cloud engineers, and IT professionals. With the right commands, you can automate tasks, troubleshoot faster, and manage systems more efficiently.Β 

If you’d like to watch a step‑by‑step walkthrough of Windows server 2022 or Windows 11 installation, and Basic & Advanced CMD commands, please visit our post-

      1. Create a Virtual Machine and Install Windows server 2022, For YouTube Video Click Here.
      2. Install Windows 11 with or without TPM on a VM, For YouTube Video Click Here.
      3. Top 50 Powerful Basic CMD Commands.
      4. Top 50 Advanced CMD Commands.

Below are 50 powerful PowerShell commands with quick explanations.

Top 10 System Information & Management PowerShell Commands

    1. Get-ComputerInfo – Displays detailed system information.
    2. Get-Process – Lists all running processes with process ID.Top 50 Powerful PowerShell Commands - Powershell Process
    3. Stop-Process -Name notepad – Kills a process by name. (Replace process name with notepad).
    4. Get-Service – Shows all services and their status.
    5. Start-Service -Name spooler – Starts a specific service. (Replace service name with spooler).
    6. Stop-Service -Name spooler – Stops a specific service. (Replace service name with spooler).
    7. Restart-Service -Name spooler – Restarts a service. (Replace service name with spooler).
    8. Get-EventLog -LogName System -Newest 20 – Views recent system logs (recent 20).
    9. Get-WmiObject Win32_OperatingSystem – Retrieves OS details and Version.
    10. Get-HotFix – Lists installed Windows updates.

Top 10 File & Folder Operations PowerShell commands

    1. Get-ChildItem C:\ – Lists files/folders in a directory (C:\).
    2. New-Item -Path C:\Test -ItemType Directory – Creates a new folder. (Test folder in C:\).
    3. Remove-Item C:\Test -Recurse – Deletes a folder and contents (Test folder).
    4. Copy-Item C:\file.txt D:\ – Copies a file. (From C: drive to D: drive, change path or file name as per requirement).
    5. Move-Item C:\file.txt D:\ – Moves a file.
    6. Rename-Item C:\old.txt new.txt – Renames a file. (From old.txt to new.txt).
    7. Get-Content file.txt – Reads file contents from file.txt.
    8. Set-Content file.txt “Hello World” – Writes text to a file, in file.txt. If file is not in same working directory, use full file path like C:\file.txt.
    9. Add-Content file.txt “New Line” – Appends text to a file.
    10. Clear-Content file.txt – Clears file contents.

Top 10 User & Permission Management PowerShell commands

    1. Get-LocalUser – Lists local users.
    2. New-LocalUser -Name TestUser -Password (Read-Host -AsSecureString) – Creates a new user, It will prompt to set password.
    3. Remove-LocalUser -Name TestUser – Deletes a user.
    4. Get-LocalGroup – Lists local groups.
    5. Add-LocalGroupMember -Group Administrators -Member TestUser – Adds user to a group. (Add Testuser to Administrators).
    6. Remove-LocalGroupMember -Group Administrators -Member TestUser – Removes user from a group.
    7. Get-Acl C:\Test – Displays file/folder permissions.
    8. Set-Acl C:\Test (Get-Acl D:\Source) – Copies permissions from another folder. (Copy permissions from D:\source to C:\Test folder).
    9. Get-ADUser -Filter * – Lists Active Directory users (requires AD module).
    10. Get-ADGroupMember “Domain Admins” – Lists members of a domain group (Domain Admins).

Top 10 Networking & Connectivity PowerShell commands

    1. Test-Connection google.com – Pings a host. (Like google.com or IP address).
    2. Get-NetIPAddress – Shows IP configuration.
    3. Get-NetAdapter – Lists network adapters.
    4. Disable-NetAdapter -Name “Ethernet” – Disables a network adapter with adapter name like Ethernet.
    5. Enable-NetAdapter -Name “Ethernet” – Enables a network adapter with adapter name like Ethernet.
    6. Get-NetTCPConnection – Displays active TCP connections.
    7. Get-DnsClientServerAddress – Shows DNS servers on all adapters.
    8. Set-DnsClientServerAddress -InterfaceAlias “Ethernet” -ServerAddresses 8.8.8.8 – Sets DNS server on a adapter like Ethernet. (Change 8.8.8.8 with your DNS server IP).
    9. Get-NetFirewallRule – Lists firewall rules.
    10. New-NetFirewallRule -DisplayName “AllowApp” -Direction Inbound -Program “C:\app.exe” -Action Allow – Creates a firewall rule. (Rule name -AllowApp, type – Inbound and allowing – App.exe, replace accordingly).

Top 10 Automation & Advanced Tasks PowerShell commands

    1. Get-Job – Lists background jobs.
    2. Start-Job -ScriptBlock {Get-Process} – Runs a command as a background job. (Replace Get-Process with your command which you want to run in background).
    3. Receive-Job -Id 1 – Gets results from a job. (replace job ID with required one).
    4. Remove-Job -Id 1 – Deletes a job. (replace job ID with required one).
    5. Get-ScheduledTask – Lists scheduled tasks.
    6. Register-ScheduledTask – Creates a new scheduled task.
    7. Get-Module – Lists installed PowerShell modules.
    8. Install-Module -Name Az – Installs a module from PSGallery. (replace module name with Az).
    9. Import-Module Az – Loads a module. (replace module name with Az).
    10. Export-Csv processes.csv -NoTypeInformation – This can be pipe to another command to Exports data to CSV. Like Get-Process | Export-Csv processes.csv -NoTypeInformationΒ it will exports processes to a CSV file in working directory.

Many of these commands can beΒ Combine into scripts to automate repetitive tasks like user creation, log collection, or system monitoring.

Discover more:

Head over to our Blog page for the latest posts.

Share Your Thoughts

Your email address will not be published. Required fields are marked *

Scroll to Top