Get-CMApprovalRequest

Gets a request to allow the installation of an application.

Syntax

Get-CMApprovalRequest
   [-ApplicationName <String[]>]
   [-User <String>]
   [-CurrentState <RequestState>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMApprovalRequest
   -Id <String[]>
   [-User <String>]
   [-CurrentState <RequestState>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMApprovalRequest
   [-User <String>]
   -InputObject <IResultObject>
   [-CurrentState <RequestState>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMApprovalRequest
   [-User <String>]
   -ModelName <String>
   [-CurrentState <RequestState>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMApprovalRequest
   [-User <String>]
   -RequestGuid <String>
   [-CurrentState <RequestState>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMApprovalRequest cmdlet gets a request from a user to install an application. You can specify an approval request by application name, application ID, or by user name.

Examples

Example 1: Get all approval requests

PS C:\> Get-CMApprovalRequest

This command gets all pending Microsoft System Center Configuration Manager approval requests.

Example 2: Get an approval request by using an application ID

PS C:\> Get-CMApprovalRequest -Id "1635223"

This command gets an approval request for an application with the specified ID.

Example 3: Get an approval request for a specific user

PS C:\> Get-CMApprovalRequest -Application "HelloWorld" -User "tsqa\davidchew"

This command gets an approval request for the application HelloWorld for a specified user.

Required Parameters

-Id

Specifies an array of IDs of applications.

Type:String[]
Aliases:CIUniqueId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ModelName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RequestGuid
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ApplicationName

Specifies an array of names of applications.

Type:String[]
Aliases:Application
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CurrentState
Type:RequestState
Parameter Sets:Unknown, Requested, Canceled, Denied, Approved
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-User

Specifies an array of user names of persons who submitted the approval request. Use the format domain\user.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False