Get-CMApprovalRequest

SYNOPSIS

Gets an approval request to allow the installation of a Configuration Manager application.

SYNTAX

SearchByName (Default)

Get-CMApprovalRequest [-ApplicationName <String[]>] [-User <String>] [-CurrentState <RequestState>]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

SearchById

Get-CMApprovalRequest -Id <String[]> [-User <String>] [-CurrentState <RequestState>] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [<CommonParameters>]

SearchByModelName

Get-CMApprovalRequest [-User <String>] -ModelName <String> [-CurrentState <RequestState>]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

SearchByGuid

Get-CMApprovalRequest [-User <String>] -RequestGuid <String> [-CurrentState <RequestState>]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [<CommonParameters>]

SearchByValue

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

DESCRIPTION

The Get-CMApprovalRequest cmdlet gets a request from a user to install a Microsoft System Center Configuration Manager 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.

PARAMETERS

-ApplicationName

Specifies an array of names of applications.

Type: String[]
Parameter Sets: SearchByName
Aliases: Application

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

-CurrentState

Type: RequestState
Parameter Sets: (All)
Aliases: 
Accepted values: Unknown, Requested, Canceled, Denied, Approved

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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

-Id

Specifies an array of IDs of applications.

Type: String[]
Parameter Sets: SearchById
Aliases: CIUniqueId

Required: True
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
Parameter Sets: SearchByValue
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ModelName

Type: String
Parameter Sets: SearchByModelName
Aliases: 

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

-RequestGuid

Sepcifies the request ID.

Type: String
Parameter Sets: SearchByGuid
Aliases: 

Required: True
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
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

Approve-CMApprovalRequest

Deny-CMApprovalRequest