Commands › Microsoft Teams

Get-CsBatchPolicyAssignmentOperation

Microsoft Teams MicrosoftTeams Get-*

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)

ParameterTypeRequiredWhat it controls
-Break SwitchParameter Wait for .NET debugger to attach
-HttpPipelineAppend SendAsyncStep[] SendAsync Pipeline Steps to be appended to the front of the pipeline
-HttpPipelinePrepend SendAsyncStep[] SendAsync Pipeline Steps to be prepended to the front of the pipeline
-Identity String yes The ID of a batch policy assignment operation.
-Proxy Uri The URI for the proxy server to use
-ProxyCredential PSCredential Credentials for a proxy server to use for the remote call
-ProxyUseDefaultCredentials SwitchParameter Use the default credentials for the proxy
-Status String Option filter

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.