Get-Process Flashcards
(14 cards)
What does this PowerShell cmdlet do?
Get-Process
Retrieves information about running processes on the local or remote computer.
## Footnote
Use it like Task Manager in command-line form.
Which cmdlet would you use to do the following?
List active processes on the local or remote computer.
Get-Process
What does this Get-Process
parameter do?
-Name
Specifies one or more process names to retrieve.
## Footnote
Use names like ‘notepad’, ‘chrome’, etc.
Which parameter would you use with Get-Process
to do the following?
Find running processes by name.
-Name
What does this Get-Process
parameter do?
-Id
Specifies one or more process IDs to retrieve.
## Footnote
Use this if you know the PID(s) already.
Which parameter would you use with Get-Process
to do the following?
Target a process or processes using their ID numbers.
-Id
What does this Get-Process
parameter do?
-ComputerName
Retrieves processes from one or more remote computers.
## Footnote
Works if PowerShell remoting is properly configured.
Which parameter would you use with Get-Process
to do the following?
Get process info from one or more remote computers.
-ComputerName
What does this Get-Process
parameter do?
-FileVersionInfo
Includes file version details for the main module of the process.
## Footnote
Shows product name, company, etc.
Which parameter would you use with Get-Process
to do the following?
Include file version info for each process.
-FileVersionInfo
What datatype is required for the following parameter:
Get-Process -Name
string[]
What datatype is required for the following parameter:
Get-Process -Id
int[]
What datatype is required for the following parameter:
Get-Process -ComputerName
string[]
What datatype is required for the following parameter:
Get-Process -FileVersionInfo
None: parameter is a switch