Invoke-VPASUserLicenseReport


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GENERATE USER LICENSE REPORT


Description:

USE THIS FUNCTION TO GENERATE A USER LICENSE REPORT


Syntax:

Invoke-VPASUserLicenseReport [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: 1
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$UserLicenseReport = Invoke-VPASUserLicenseReport


Outputs:

If successful:
{
         "componentName": "Privilege Cloud",
         "optionalSummary": {
                 "name": "License consumption",
                 "used": "8",
                 "total": "25"
         },
         "licensesData": [
                 {
                         "licencesElements": " ",
                         "licenseSubCategory": "User Types"
                 }
         ]
}

$false if failed