• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back
Get-Command
Gets all commands. Use wildcards to filter.
'Get-Command *service*' will pull anything that has 'service' in the name.
Get-Member
Retrieves information about the properties and methods that an object supports. Use it by piping an object to Get-Member. e.g. 'Get-Service | Get-Member'
& 'Path to exe' arguments
To run a command that has a space in it's name or path, enclose in single quotes and precede with &

& is called the 'invoke operator' in PowerShell.
.\Program.exe arguments
To run a command in the current directory, place a .\ in front of its filename
& '.\Program with spaces.exe' arguments
To run a command with spaces in its name from the current directory, precede it with both & and .\
From a script, batch, logon script, scheduled task, or any other non-powershell application: PowerShell -Command CommandName
This will invoke a PowerShell command from the non-powershell app

e.g. from a cmd line:
PowerShell -Command Get-Process
will return the output to your cmd window
From a script, batch, logon script, scheduled task, or any other non-powershell application:

PowerShell -File 'full path to script' arguments
To launch a PowerShell script from a non-powershell app.
Out-GridView
Sends output to an interactive table in a separate window.

e.g.
Get-Process | Out-GridView
Out-File
Sends output to a new file.

e.g.
Get-Process | Out-File c:\out.txt
Out-File -Append
Appends output to an existing file to c:\out.txt

e.g.
Get-Process | Out-File -Append c:\out.txt
Out-Null
Piping to Out-Null deletes the output.

e.g.
Get-ChildItem | Out-Null
Out-Printer
This will pass the results to the default printer.

e.g.
Get-Service | Out-Printer