Get-Process Flashcards

(14 cards)

1
Q

What does this PowerShell cmdlet do?

Get-Process

A

Retrieves information about running processes on the local or remote computer.
## Footnote
Use it like Task Manager in command-line form.

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

Which cmdlet would you use to do the following?

List active processes on the local or remote computer.

A

Get-Process

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

What does this Get-Process parameter do?

-Name

A

Specifies one or more process names to retrieve.
## Footnote
Use names like ‘notepad’, ‘chrome’, etc.

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

Which parameter would you use with Get-Process to do the following?

Find running processes by name.

A

-Name

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

What does this Get-Process parameter do?

-Id

A

Specifies one or more process IDs to retrieve.
## Footnote
Use this if you know the PID(s) already.

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

Which parameter would you use with Get-Process to do the following?

Target a process or processes using their ID numbers.

A

-Id

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

What does this Get-Process parameter do?

-ComputerName

A

Retrieves processes from one or more remote computers.
## Footnote
Works if PowerShell remoting is properly configured.

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

Which parameter would you use with Get-Process to do the following?

Get process info from one or more remote computers.

A

-ComputerName

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

What does this Get-Process parameter do?

-FileVersionInfo

A

Includes file version details for the main module of the process.
## Footnote
Shows product name, company, etc.

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

Which parameter would you use with Get-Process to do the following?

Include file version info for each process.

A

-FileVersionInfo

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

What datatype is required for the following parameter:

Get-Process -Name

A

string[]

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

What datatype is required for the following parameter:

Get-Process -Id

A

int[]

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

What datatype is required for the following parameter:

Get-Process -ComputerName

A

string[]

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

What datatype is required for the following parameter:

Get-Process -FileVersionInfo

A

None: parameter is a switch

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