PowerShell Flashcards Preview

Spring 2014 > PowerShell > Flashcards

Flashcards in PowerShell Deck (38)
Loading flashcards...
1

*

Wildcard that sets up a match with any number of characters

2

?

Wildcard that sets up a match with a single character

3

$env:path

Shows the default path PowerShell will use to search for the script you entered.

4

Get-Process

Shows all the currently running processes

"-Processname" allows you to specific a specific parameter

5

Get-ChildItem

Retrives the contents of the current folder, or one you specify the path to.

Aliases: dir, ls

6

get-service winrm

Checks if WinRM is running

7

start-service winrm

Starts WinRM

8

&$pshome\configure-wsman.ps1

Configures the WS-Management protocol to work with PowerShell

9

Get-Host

The cmdlet for programmatically configuring the Windows PowerShell console.

10

Clear-Host

Refreshes the console window and forces the immediate application of the Get-Host configuration options you just set.

11

Get-History

Accesses the history buffer commands and inserts them into the Windows PowerShell pipeline allowing you to programmatically access and manipulate them.

12

Invoke-History

Takes as an argument a number representing the position of a command in the history buffer.

13

Get-PSProvider

Shows a listing of all providers supported by Windows PowerShell.

14

Get-PSDrive

Displays a listing of available drives and the provider with which they are associated.

15

Set-Location

Changes the current drive.

Aliases: sl, cd, pwd, chdir

16

Read-Host

Pauses the script until the users presses enter

17

Up arrow

Moves back one position in the command line history buffer

18

Down arrow

Moves forward one position in the command line history buffer

19

Page up

Moves to the first command stored in the command line history buffer

20

Page down

Moves to the last command stored in the command line history buffer

21

Home

Jumps the cursor to the beginning of the command line

22

End

Jumps the cursor to the end of the command line

23

Control+Left

Moves the cursor to the left a word at a time

24

Control+Right

Moves the cursor to the right a word at a time

25

Get-Member

Gets the properties, methods, typeinfo, and property sets of the objects given to it.

26

Select-Object

Selects objects based on parameters set in the cmdlet command string.

27

About-PSJob

Provides a high-level overview of how to work with background jobs.

28

Start-PSJob

Creates and executes a new local or remote background job.

29

Receive-PSJob

Retrieves output generated by a background job. Once retrieved, the output is removed and no longer retrievable, unless you use the -keep argument.

30

Wait-PSJob

Instructs PowerShell to wait for a background job to complete.