Common PowerShell Commands
Get-Command: Retrieves a list of available cmdlets, functions, and aliases.
Get-Help: Displays help information about cmdlets, including syntax and
examples.
Set-ExecutionPolicy: Manages the execution policy, which controls which scripts
can run.
Get-Service: Lists services on the local or remote computer.
Start-Service: Starts a stopped service.
Stop-Service: Stops a running service.
Restart-Service: Restarts a service.
Get-Process: Retrieves information about running processes.
Stop-Process: Terminates a running process.
Get-ChildItem (or dir/ls): Lists files and directories in a specified path.
Copy-Item: Copies files or directories.
Move-Item: Moves files or directories.
Remove-Item (or del): Deletes files or directories.
Rename-Item: Renames files or directories.
Get-Content (or type): Displays the content of a file.
Set-Content: Replaces the content of a file.
Add-Content: Appends content to a file.
Export-Csv: Exports data to a CSV file.
Import-Csv: Imports data from a CSV file.
ConvertTo-Html: Converts output to HTML format.
Invoke-Item: Opens or executes a file or program.
Clear-History: Clears the command history.
Get-History: Displays the command history.
Write-Host: Writes output to the console.
Read-Host: Reads input from the console.
Test-Connection: Sends ICMP echo requests (pings) to test network connectivity.
Select-Object: Selects specific properties of an object.
Where-Object: Filters objects based on specified criteria.
ForEach-Object: Performs an action on each item in a collection of objects.