PowerShell Flashcards

(10 cards)

1
Q

What are the two parts of PowerShell

A

The command shell and a scripting language

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

How does PowerShell work?

A

It uses cmdlets to run tasks on objects

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

Why use a CLI for PowerShell?

A

It’s faster. We’re able to batch commands, and store and run scripts

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

What does PowerShell use for input/output?

A

Objects

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

What features does PowerShell share with a traditional command shell?

A

It uses familiar command aliases (abbreviations like CLS for Clear Screen), it allows you to pipe the output of one command as the input for the next command, and it has a built-in help feature

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

What features differentiate PowerShell from traditional command shells?

A

It operates on objects over text, meaning we don’t have to format the output from one command in a certain way for it to work as input for the next command; it uses many types of commands and functions; it uses cmdlets to work on tasks

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

What language are cmdlets developed in?

A

.NET or .NET Core

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

What is the syntax of a cmdlet?

A

Verb - Noun

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

What cmdlet will list all cmdlets?

A

Get-Command

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

How do you filter the output of a cmdlet?

A

With a flag

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