Get-MtSpo
Synopsis
Section titled “Synopsis”Retrieves SharePoint Online tenant settings via PnP with session caching.
Syntax
Section titled “Syntax”Get-MtSpo [-ClearCache] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”Returns the full SPO tenant configuration from Get-PnPTenant. Results are cached in $__MtSession.SpoCache for the duration of the session. Use -ClearCache to force a fresh retrieval.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-MtSpoReturns the cached (or freshly retrieved) SPO tenant settings.
Example 2
Section titled “Example 2”Get-MtSpo -ClearCacheClears the cached settings and retrieves fresh data from Get-PnPTenant.
Parameters
Section titled “Parameters”-ClearCache
Section titled “-ClearCache”Clear the cached SPO tenant settings and retrieve fresh data.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.