Useful PowerShell Commands

This site lists useful PowerShell commands for Windows users. Each command helps you manage, troubleshoot, or optimize your system easily.

Cute cat

Learn more about PowerShell at Microsoft Docs.

1. Check System Health

DISM /Online /Cleanup-Image /CheckHealth

2. Restore System Health

DISM /Online /Cleanup-Image /RestoreHealth

3. Run System File Checker

sfc /scannow

4. List Running Processes

Get-Process

5. Kill a Process

Stop-Process -Name notepad

6. Show IP Configuration

Get-NetIPAddress

7. Test Internet Connection

Test-Connection google.com

8. List Installed Programs

Get-WmiObject -Class Win32_Product

9. Empty Recycle Bin

Clear-RecycleBin -Force

10. Create a New Directory

New-Item -Path "C:\MyFolder" -ItemType Directory