PowerShell Flashcards
*
Wildcard that sets up a match with any number of characters
?
Wildcard that sets up a match with a single character
$env:path
Shows the default path PowerShell will use to search for the script you entered.
Get-Process
Shows all the currently running processes
“-Processname” allows you to specific a specific parameter
Get-ChildItem
Retrives the contents of the current folder, or one you specify the path to.
Aliases: dir, ls
get-service winrm
Checks if WinRM is running
start-service winrm
Starts WinRM
&$pshome\configure-wsman.ps1
Configures the WS-Management protocol to work with PowerShell
Get-Host
The cmdlet for programmatically configuring the Windows PowerShell console.
Clear-Host
Refreshes the console window and forces the immediate application of the Get-Host configuration options you just set.
Get-History
Accesses the history buffer commands and inserts them into the Windows PowerShell pipeline allowing you to programmatically access and manipulate them.
Invoke-History
Takes as an argument a number representing the position of a command in the history buffer.
Get-PSProvider
Shows a listing of all providers supported by Windows PowerShell.
Get-PSDrive
Displays a listing of available drives and the provider with which they are associated.
Set-Location
Changes the current drive.
Aliases: sl, cd, pwd, chdir