Examples of using Get-process in English and their translations into German
{-}
-
Colloquial
-
Official
-
Ecclesiastic
-
Medicine
-
Financial
-
Ecclesiastic
-
Political
-
Computer
-
Programming
-
Official/political
-
Political
For example,"get-process-id 664, 2060.
You can pipe a process object to Get-Process.
EXAMPLE 2 C:\PS> get-process export-csv processes.
Get-Process also accepts multiple values for the Name parameter.
Then, you might be interested in learning about a few of the basic cmdlets, such as Get-Help,Get-Command, Get-Process, Get-Service, and Get-Eventlog.
For example,"get-process write-output" is equivalent to"get-process.
Although it is normal for cmdlets to return no data in some situations,when you specify a process by its ProcessId, Get-Process generates an error if it finds no matches, because the usual intent is to retrieve a known running process.
C:\PS> get-process select-object ProcessName, Id, WS This command displays a list of processes.
The"Property" parameter name is optional,so you can omit it. EXAMPLE 4 C:\PS> get-process winlogon format-list-property* Description This command displays all of the properties of the Winlogon process.
C:\PS> Get-Process This command gets a list of all of the running processes running on the local computer.
Start-job-scriptblock{get-process} The Start-Job command returns an object that represents the job.
Get-process winlogon format-list-property* With a bit of practice, you will find that combining simple commands into pipelines saves time and typing, and makes your scripting more efficient.
For example, the following command creates the$a variable and then stores any warnings in it: get-process-id 6-WarningVariable a The following command adds any warnings to the$a variable: get-process-id 2-WarningVariable+a The following command displays the contents of$a:$a You can use this parameter to create a variable that contains only warnings from specific commands.
C:\PS> get-process format-list-property name, basepriority, priorityclass This command displays the name, base priority, and priority class of each process on the computer.
Set-item-path gp-value get-process-force The change affects the four properties that define the association between the alias and the command.
C:\PS> get-process Winlogon format-custom This command formats information about the Winlogon process in an alternate customized view.
For example, the following command creates the$out variable and stores the process object in it: get-process powershell-OutVariable out The following command adds the process object to the$out variable: get-process iexplore-OutVariable+out The following command displays the contents of the$out variable:$out-OutBuffer< Int32> Determines the number of objects to accumulate in a buffer before any objects are sent through the pipeline.
A get-process$a+= get-service$a += "string" $a+= 12 Because the assignment operator(=) has a lower precedence than the pipeline operator(_), parentheses are not required to assign the result of a command pipeline to a variable.
EXAMPLE 1 C:\PS> get-process out-host-paging Description This command displays the processes on the system one page at a time.
C:\PS> get-process measure-object-property workingset-minimum-maximum-average This command displays the minimum, maximum, and average sizes of the working sets of the processes on the computer.
C:\PS> get-process powershell debug-process This command attaches a debugger to the PowerShell processes on the computer.
EXAMPLE 7 C:\PS> get-process sql*-module Description This command uses the Module parameter to get the modules that have been loaded by the process.
EXAMPLE 1 C:\PS> get-process out-gridview Description This command gets the processes running on the local computer and sends them to a grid view window.
EXAMPLE 3 C:\PS> get-process where-object{$_. ProcessName-match"^p.*"} Description This command gets the processes with a ProcessName property that begins with the letter"p.
C:\PS>$a get-process C:\PS> get-process-inputobject$a format-table-view priority These commands list the processes on the computer in groups based on their priority class.