0% found this document useful (0 votes)
4 views

Common PowerShell Commands

The document lists common PowerShell commands along with their functions, such as retrieving commands, managing services, and handling files. Key commands include Get-Command, Get-Help, Set-ExecutionPolicy, and various file manipulation commands like Copy-Item and Remove-Item. It also includes commands for network testing and object manipulation.

Uploaded by

fookchia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Common PowerShell Commands

The document lists common PowerShell commands along with their functions, such as retrieving commands, managing services, and handling files. Key commands include Get-Command, Get-Help, Set-ExecutionPolicy, and various file manipulation commands like Copy-Item and Remove-Item. It also includes commands for network testing and object manipulation.

Uploaded by

fookchia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like