PowerShell Parameters

0.0(0)
studied byStudied by 0 people
0.0(0)
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/81

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:12 PM on 1/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

82 Terms

1
New cards

Debug db

Displays programmer-level detail about the operation done by the command for troubleshooting

2
New cards

ErrorAction ea

Determines how the cmdlet responds to a non-terminating error (Continue, Stop, SilentlyContinue, Inquire, Ignore, Break, Suspend)

3
New cards

ErrorVariable ev

Stores error messages from the command in the specified variable in addition to $Error

4
New cards

InformationAction infa

Determines how the cmdlet responds to information messages from Write-Information

5
New cards

InformationVariable iv

Stores information messages from the command in the specified variable

6
New cards

OutVariable ov

Stores output objects from the command in the specified variable in addition to sending output along the pipeline

7
New cards

OutBuffer ob

Determines the number of objects to accumulate in a buffer before sending them through the pipeline

8
New cards

PipelineVariable pv

Stores the current pipeline element as a variable that can be accessed by downstream commands

9
New cards

ProgressAction proga

Determines how PowerShell responds to progress updates like progress bars (added in PowerShell 7.4)

10
New cards

Verbose vb

Displays detailed information about the operation done by the command

11
New cards

WarningAction wa

Determines how the cmdlet responds to a warning message

12
New cards

WarningVariable wv

Stores warning messages from the command in the specified variable

13
New cards

WhatIf wi

Displays a message describing what would happen if the command executes, without actually executing it

14
New cards

Confirm cf

Prompts you for confirmation before executing the command

15
New cards

Get-Process -Debug

Shows debugging messages if the cmdlet generates them

16
New cards

Get-Process -Debug:$false

Suppresses debugging messages even if $DebugPreference is set

17
New cards

Continue

Displays the error message and continues executing (default)

18
New cards

Stop

Displays the error message and stops executing

19
New cards

SilentlyContinue

Suppresses the error message and continues executing

20
New cards

Inquire

Displays the error message and prompts for confirmation before continuing

21
New cards

Ignore

Suppresses the error message and doesn't add it to $Error variable

22
New cards

Break

Enters the debugger when an error occurs

23
New cards

Get-Process -ErrorVariable myErrors

Stores errors in $myErrors variable

24
New cards

Get-Process -ErrorVariable +myErrors

Appends errors to existing $myErrors variable

25
New cards

SilentlyContinue

Information messages are not displayed (default)

26
New cards

Continue

Displays information messages and continues

27
New cards

Stop

Stops execution when Write-Information is encountered

28
New cards

Inquire

Displays information message and asks if you want to continue

29
New cards

Ignore

Completely ignores information messages

30
New cards

Get-Process -OutVariable procs

Stores process objects in $procs variable

31
New cards

Get-Process -OutVariable +procs

Appends process objects to existing $procs variable

32
New cards

Get-ChildItem -PipelineVariable file | GetContent

Stores each file object in $file variable for access in downstream
commands

33
New cards

Get-Process -Verbose

Shows verbose messages if the cmdlet generates them

34
New cards

Get-Process -Verbose

35
New cards

$false

Suppresses verbose messages even if $VerbosePreference is set

36
New cards

Continue

Displays warning messages and continues (default)

37
New cards

Stop

Displays warning message and stops

38
New cards

SilentlyContinue

Suppresses warning messages and continues

39
New cards

Inquire

Displays warning and prompts for confirmation

40
New cards

Remove-Item file.txt -WhatIf

Shows what would be removed without actually removing it

41
New cards

New-Item test.txt -WhatIf

Shows what would be created without actually creating it

42
New cards

Remove-Item *.txt -Confirm

Prompts for confirmation before removing each file

43
New cards

Remove-Item file.txt -Confirm:$false

Suppresses confirmation prompts

44
New cards

Yes Y

Perform the action

45
New cards

Yes to All A

Perform all actions and suppress subsequent confirmation prompts

46
New cards

No N

Don't perform the action

47
New cards

No to All L

Don't perform any actions and suppress subsequent confirmation prompts

48
New cards

Suspend S

Pause the command and create a temporary nested session

49
New cards

Help ?

Display help for the confirmation options

50
New cards

Path

Specifies the path to a location

51
New cards

LiteralPath

Specifies a path where wildcards are not interpreted

52
New cards

Filter

Specifies a filter to qualify the Path parameter

53
New cards

Include

Specifies items to include in the operation

54
New cards

Exclude

Specifies items to exclude from the operation

55
New cards

Recurse

Performs the operation on items in subcontainers

56
New cards

Force

Forces the command to run without asking for user confirmation or overrides restrictions

57
New cards

ItemType

Specifies the type of item to create (File, Directory, SymbolicLink, etc.)

58
New cards

Property

Specifies object properties to select or display

59
New cards

Name

Specifies the name of an object

60
New cards

Value

Specifies a value to assign

61
New cards

InputObject

Specifies objects to process via parameter instead of pipeline

62
New cards

PassThru

Returns an object representing the item worked with (many cmdlets don't output by default)

63
New cards

First

Gets only the first specified number of objects

64
New cards

Last

Gets only the last specified number of objects

65
New cards

Skip

Skips the first specified number of objects

66
New cards

Unique

Returns only unique objects

67
New cards

Where

Specifies a filter expression

68
New cards

Sort

Sorts objects by property values

69
New cards

ComputerName

Specifies one or more remote computers

70
New cards

Credential

Specifies a user account with permission to perform the action

71
New cards

Session

Specifies a PSSession to use for the command

72
New cards

AsJob

Runs the command as a background job

73
New cards

Delimiter

Specifies a delimiter to separate values

74
New cards

Encoding

Specifies the file encoding (UTF8, ASCII, Unicode, etc.)

75
New cards

NoTypeInformation

Omits type information header from CSV output

76
New cards

Width

Specifies the width of output

77
New cards

Parameter Aliases

Most parameters have short aliases to reduce typing (e.g., -ea for -ErrorAction)

78
New cards

Switch Parameters

Parameters that don't require a value act as boolean flags (e.g., -Recurse)

79
New cards

Positional Parameters

Some parameters can be used without the parameter name if in the correct position

80
New cards

Tab Completion

Press Tab after typing a dash (-) to cycle through available parameters

81
New cards

Parameter Sets

Some cmdlets have different groups of parameters that can't be used together

82
New cards

Preference Variables

Common parameters override preference variables like $ErrorActionPreference

Explore top flashcards