Commands › Microsoft Teams
Get-CsBatchPolicyAssignmentOperation
This cmdlet is used to retrieve the status of batch policy assignment operations.
Quick start script
# Get-CsBatchPolicyAssignmentOperation — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Run and inspect
Get-CsBatchPolicyAssignmentOperation -Identity <String> | Format-List
# 3. Export for evidence / drift tracking
Get-CsBatchPolicyAssignmentOperation | Export-Clixml .\CsBatchPolicyAssignmentOperation-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
Get (Default)
Get-CsBatchPolicyAssignmentOperation [-Status <String>] [-Break] [-HttpPipelineAppend <SendAsyncStep[]>]
[-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>]
[-ProxyUseDefaultCredentials] [<CommonParameters>]
Get1
Get-CsBatchPolicyAssignmentOperation -Identity <String> [-Break] [-HttpPipelineAppend <SendAsyncStep[]>]
[-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>]
[-ProxyUseDefaultCredentials] [<CommonParameters>]
Parameters (8)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.