Get-CMApprovalRequest
Get-CMApprovalRequest
Gets a request to allow the installation of an application.
Syntax
Parameter Set: SearchByName
Get-CMApprovalRequest [-ApplicationName <String[]> ] [-User <String> ] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMApprovalRequest -Id <String[]> [ <CommonParameters>]
Detailed 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.
Parameters
-ApplicationName<String[]>
Specifies an array of names of applications.
Aliases |
Application |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Id<String[]>
Specifies an array of IDs of applications.
Aliases |
CIUniqueid |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-User<String>
Specifies an array of user names of persons who submitted the approval request. Use the format domain\user.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get all approval requests
This command gets all pending Microsoft System Center 2012 SP1 Configuration Manager approval requests.
PS C:\> Get-CMApprovalRequest
Example 2: Get an approval request by using an application ID
This command gets an approval request for an application with the specified ID.
PS C:\> Get-CMApprovalRequest -Id "1635223"
Example 3: Get an approval request for a specific user
This command gets an approval request for the application HelloWorld for a specified user.
PS C:\> Get-CMApprovalRequest -Application "HelloWorld" -User "tsqa\davidchew"