Powershell cmdlets Flashcards

1
Q

What cmdlet lists all cmdlets and functions registered in the command shell

A

Get-Command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What cmdlet identifies the effective execution policy for the current PowerShell session?

A

Get-ExecutionPolicy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The ____ portion of a cmdlet name indicates what the cmdlet does.

A

Verb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What cmdlet verb retrieves a resource, such as a file or a user?

A

Get

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What cmdlet verb changes the data associated with a resource, such as a file or user property?

A

Set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What cmdlet verb creates a resource, such as a file or user?

A

New

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What cmdlet verb adds a resource to a container of multiple resources?

A

Add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What cmdlet verb deletes a resource from a container of multiple resources?

A

Remove

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between read and get?

A

Read verb retrieves information that a resource contains, such as a text file’s content, whereas the Get verb retrieves the actual file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

____ names begin with a dash (-).

A

Parameter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You can review a complete list of help topics by running

A

Get-Help about*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

_____ retrieves information about a command, or several commands, such as the name, category, version, and even the module that contains it.

A

Get-Command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The _____ ______ is a central repository for Windows PowerShell–related content, including scripts and modules.

A

PowerShell Gallery

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

_____ contains cmdlets for finding and installing modules, scripts, and commands from the online gallery.

A

PowerShellGet

17
Q

True or False:

Aliases typically support the parameters that the original commands use

A

False, aliases typically don’t support the parameters that the original commands use

18
Q

The double-square-bracket notation in the parameter value type designates what parameters.

Example: -ComputerName <string[]>

A
19
Q

What does this command do?

Get-Command -Noun alias*

A

This command searches for all cmdlets whose noun part starts with alias.

20
Q
A