Skip to main content

Get-RunningProcesses

SYNOPSISโ€‹

Gets the processes that are running from a custom list of process objects and also adds a property called ProcessDescription.

SYNTAXโ€‹

Get-RunningProcesses [[-ProcessObjects] <PSObject[]>] [-DisableLogging] [<CommonParameters>]

DESCRIPTIONโ€‹

Gets the processes that are running from a custom list of process objects and also adds a property called ProcessDescription.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Get-RunningProcesses -ProcessObjects $ProcessObjects

PARAMETERSโ€‹

-ProcessObjectsโ€‹

Custom object containing the process objects to search for. If not supplied, the function just returns $null

Type: PSObject[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisableLoggingโ€‹

Disables function logging

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersโ€‹

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTSโ€‹

Noneโ€‹

You cannot pipe objects to this function.โ€‹

OUTPUTSโ€‹

Syste.Boolean.โ€‹

Rettuns $true if the process is running, otherwise $false.โ€‹

NOTESโ€‹

This is an internal script function and should typically not be called directly.

https://psappdeploytoolkit.com