Hoofdstuk 10 Flashcards

1
Q

Cmdlet om de eigenschappen van een object te selecteren

A

cmdlet | select-object

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

Parameters die je bij select-object kunt gebruiken

A

property (niet nodig)
first
last
unique

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

Geef het cmdlet om van uw processen enkel de eerste drie PM, handles en processname te tonen

A

get-process | select-object PM,handles,processname -first 3

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

Cmdlet om objecten te groeperen

A

cmdlet | group naamgroep

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

Cmdlet om het aantal processen per bedrijf te tonen

A

get-process | group company

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

Cmdlet om het aantal lijnen (objecten) te tellen

A

measure-object

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

Cmdlet om het aantal bedrijfsnamen te tellen die een proces open hebben staan op jouw computer

A

get-process | group company | measure(-object)

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

Alias measure-object

A

measure

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

Aantal bestanden die de extensie .exe in jouw directory hebben

A

get-childitem *.exe | measure-object

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

Cmdlet om alle processen te tonen waar de processname gelijkaardig aan vmware is

A

get-process | where-object {$_.ProcessName -like “vmware”}

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

Toon alle procesnamen waarvan de lengte 5 letters is

A

get-process | where-object{$_.processname -match “^\w{5}$”}

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

Cmdlet om alle procesnamen te tonen waarvan de lengte 5 of 6 letters is

A

get-process | where-object{$_.processname -match “^\w{5,6}$”}

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

Cmdlet om alle display names te tonen van uw services die uit 2 woorden bestaan

A

get-service | where-object {$_.DisplayName -match “^\w* \w*$”}

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