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.