Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

PowerShell Cmdlets

25

Flashcards

0/25

Still learning
StarStarStarStar

Get-ChildItem

StarStarStarStar

Gets the items and child items in one or more specified locations. Example usage: Get-ChildItem -Path C:\Windows -Recurse

StarStarStarStar

Set-Content

StarStarStarStar

Writes or replaces the content of a file. Example usage: Set-Content -Path '.\example.txt' -Value 'New content'

StarStarStarStar

Stop-Service

StarStarStarStar

Stops one or more running services. Example usage: Stop-Service -Name 'bits' -Force

StarStarStarStar

Get-Help

StarStarStarStar

Displays help about PowerShell cmdlets and concepts. Example usage: Get-Help Get-Service

StarStarStarStar

Get-Command

StarStarStarStar

Gets all commands that are installed on the computer, including cmdlets, aliases, and functions. Example usage: Get-Command -Noun 'Service'

StarStarStarStar

Get-Process

StarStarStarStar

Gets the processes that are running on the local computer or a remote computer. Example usage: Get-Process -Name 'notepad'

StarStarStarStar

ConvertFrom-Json

StarStarStarStar

Converts a JSON-formatted string to an object. Example usage: '{"Name":"PowerShell"}' | ConvertFrom-Json

StarStarStarStar

Set-ExecutionPolicy

StarStarStarStar

Changes the user preference for PowerShell script execution policies. Example usage: Set-ExecutionPolicy RemoteSigned

StarStarStarStar

Get-Content

StarStarStarStar

Gets the content of a file. Example usage: Get-Content -Path '.\example.txt'

StarStarStarStar

Stop-Process

StarStarStarStar

Stops one or more running processes. Example usage: Stop-Process -Name 'notepad' -Force

StarStarStarStar

ConvertTo-Json

StarStarStarStar

Converts an object to a JSON-formatted string. Example usage: Get-Process | Select-Object -Property Name, CPU | ConvertTo-Json

StarStarStarStar

Test-Path

StarStarStarStar

Determines if a path to an item exists. Example usage: Test-Path -Path 'C:\Windows\notepad.exe'

StarStarStarStar

Export-Csv

StarStarStarStar

Exports objects to a CSV file. Example usage: Get-Process | Export-Csv -Path '.\processes.csv'

StarStarStarStar

Select-Object

StarStarStarStar

Selects specific properties of an object or set of objects. Example usage: Get-Service | Select-Object -Property Status, DisplayName

StarStarStarStar

Set-Item

StarStarStarStar

Changes the value of an item to the value specified in the command. Example usage: Set-Item -Path 'env:Path' -Value 'C:\Windows'

StarStarStarStar

Start-Service

StarStarStarStar

Starts one or more stopped services. Example usage: Start-Service -Name 'wuauserv'

StarStarStarStar

Start-Process

StarStarStarStar

Starts one or more processes on the local computer. Example usage: Start-Process -FilePath 'notepad.exe'

StarStarStarStar

Import-Csv

StarStarStarStar

Creates table-like custom objects from the items in a CSV file. Example usage: Import-Csv -Path '.\data.csv'

StarStarStarStar

Out-File

StarStarStarStar

Sends output to a file. Example usage: Get-Process | Out-File -FilePath 'processes.txt'

StarStarStarStar

Remove-Item

StarStarStarStar

Deletes one or more items. Example usage: Remove-Item -Path 'C:\temp\*.*' -Recurse

StarStarStarStar

Get-Service

StarStarStarStar

Gets the status of services on a local or remote machine. Example usage: Get-Service -Name 'bits'

StarStarStarStar

Invoke-WebRequest

StarStarStarStar

Sends HTTP and HTTPS requests to a web page or web service. Example usage: Invoke-WebRequest -Uri 'http://www.example.com'

StarStarStarStar

Copy-Item

StarStarStarStar

Copies an item from one location to another. Example usage: Copy-Item -Path '.\source.txt' -Destination '.\backup\source_backup.txt'

StarStarStarStar

Get-Item

StarStarStarStar

Gets the item at the specified location. Example usage: Get-Item -Path 'C:\Program Files'

StarStarStarStar

Restart-Service

StarStarStarStar

Restarts one or more stopped services. Example usage: Restart-Service -Name 'bits'

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.