Powershell 7 Flashcards

1
Q

What command will clear specific items for the command history?

In your example clear commands 1, 5 and 9

A

clear-history -id 1, 5, 9

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

What parameter would show the output of a command that doesn’t usually doesn’t show its outpout?

A

-passthru

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

When looking at Parameter sets what do square brackets inside arguments indicate?

A

Square brackets indictae that the argument accepts more then one value

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

When looking at Parameter sets what do Angle brackets indicate and what do they contain?

A

Angled brackets inficate an argument and they contain the data type

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

What command would close the mnotepad process on your computer?

A

(get-process notepad).kill()

commandlet has to be in brackets followed by a full stop, the methon and then open and close brackets.

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