Syntax

param($mca = ‘both’)
#$PSVersionTable.PSVersion
#Install-Module -Name PartnerCenter -AllowClobber -Scope CurrentUser
Connect-PartnerCenter
$customerInfo = Get-PartnerCustomer
#$customerInfo
$c=$customerInfo.count
‘——————Total customer count in microsoft partner center is ‘ + $c +’——————-‘

Download Full Script

The script will show details as below:

  1. The total count of users in your Microsoft Partner Center.
  2. The details of all those who have accepted the Microsoft Customer Agreement status will be displayed as “Yes”, with the date agreed.
  3. The details of those who haven’t accepted the Microsoft Customer Agreement status will be displayed as “Not provided.”

Once you run the script, it’ll give you all the above details.
We have used parameter -mca with that we can select “yes”, “no” and “both” for Microsoft Customer Agreement details availability.

Purpose:Microsoft's Cloud Solution Provider (CSP) is from where you can manage your clients’ tenants. The purpose of this script is to check the status of MCA records for each of your customer’s tenant.
Modification:
Type:PowerShell Script (ps1)
Compatibility:Run with PowerShell
Tags:Microsoft, MCA, CSP portal
Reference link:

https://docs.microsoft.com/en-us/partner-center/confirm-customer-agreement