Commands › Exchange Online
Reset-ProvisioningCache
The Reset-ProvisioningCache cmdlet clears the Windows PowerShell provisioning cache of frequently used Active Directory objects. This cmdlet is only used for diagnostic purposes.
Quick start script
# Reset-ProvisioningCache — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Reset-ProvisioningCache -Server <Fqdn> -Application <String> -GlobalCache <SwitchParameter> | Format-List
# 3. Export for evidence / drift tracking
Reset-ProvisioningCache | Export-Clixml .\ProvisioningCache-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
GlobalCache
Reset-ProvisioningCache [-Server] <Fqdn> -Application <String>
[-GlobalCache]
[-CacheKeys <MultiValuedProperty>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
OrganizationCache
Reset-ProvisioningCache [-Server] <Fqdn> -Application <String>]
[-CurrentOrganization]
[-Organizations <MultiValuedProperty>]
[-CacheKeys <MultiValuedProperty>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Parameters (8)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.