public/Get-ProofpointLicensing.ps1
<# .SYNOPSIS Gets the Proofpoint Domain Licensing. .DESCRIPTION Gets the Proofpoint Licensing for specified domain. .PARAMETER Domain Specified Domain for endpoint. .EXAMPLE PS> Get-ProofpointLicensing -Domain microsoft.com #> Function Get-ProofpointLicensing{ [CmdletBinding()] Param( [Parameter(Mandatory=$true)]$Domain ) if(!($PPheaders)){ Write-Error "Not Connected to Proofpoint." } try{ $License = Invoke-RestMethod -Uri $PPURI/orgs/$Domain/licensing -Headers $PPheaders Return $License }Catch{ Write-Output "$_" } } |