File Management --------------- | Command | Description | | --- | --- | | `Get-ChildItem` | List files and directories | | `Get-Content ` | Get the content of a file | | `Set-Content ` | Set the content of a file | | `New-Item ` | Create a new file | | `New-Item -ItemType Directory` | Create a new directory | | `Remove-Item ` | Remove a file | | `Remove-Item -Recurse` | Remove a directory | | `Rename-Item ` | Rename a file or directory | | `Copy-Item SOURCE DEST` | Copy a file | | `Copy-Item SOURCE DEST -Recurse` | Copy a directory | | `Move-Item SOURCE DEST` | Move a file or directory | Process Management ------------------ | Command | Description | | --- | --- | | `Get-Process` | List running processes | | `Stop-Process -Name ` | Stop a process | | `Start-Process ` | Start a new process | | `Wait-Process -Name ` | Wait for a process to finish | Service Management ------------------ | Command | Description | | --- | --- | | `Get-Service` | List services | | `Start-Service ` | Start a service | | `Stop-Service ` | Stop a service | | `Restart-Service ` | Restart a service | | `Set-Service -StartupType Automatic` | Set a service to start automatically | | `Set-Service -StartupType Manual` | Set a service to start manually | | `Set-Service -StartupType Disabled` | Disable a service | User Management --------------- | Command | Description | | --- | --- | | `Get-LocalUser` | List local users | | `New-LocalUser ` | Create a new local user | | `Remove-LocalUser ` | Remove a local user | | `Set-LocalUser -Password ` | Set the password for a local user | | `Add-LocalGroupMember -Group Administrators -Member ` | Add a user to the Administrators group | | `Remove-LocalGroupMember -Group Administrators -Member ` | Remove a user from the Administrators group | Network Management ------------------ | Command | Description | | --- | --- | | `Get-NetIPAddress` | List IP addresses | | `Get-NetAdapter` | List network adapters | Windows Updates --------------- | Command | Description | | --- | --- | | `Install-Module -Name PSWindowsUpdate` | Install the PSWindowsUpdate module | | `Get-Command -Module PSWindowsUpdate` | List all commands in the PSWindowsUpdate module | | `Get-WUInstall` | Install Windows updates | Windows Features ---------------- | Command | Description | | --- | --- | | `Get-WindowsFeature` | List Windows features | | `Install-WindowsFeature ` | Install a Windows feature | | `Uninstall-WindowsFeature ` | Uninstall a Windows feature | Connect to a remote computer ---------------------------- | Command | Description | | --- | --- | | `Enter-PSSession -ComputerName -Credential ` | Open a new remote session | | `Exit-PSSession` | Close the current remote session | | `Invoke-Command -ComputerName -ScriptBlock { }` | Run a command on a remote computer | | `Invoke-Command -ComputerName -FilePath