Logo

Documentation home for Transend tools

Update-M365LocalCache

SYNOPSIS

Refreshes every supported local object cache from a Microsoft 365 tenant.

SYNTAX

Help

Update-M365LocalCache
  [-ShowPrereqs]
  [<CommonParameters>]

Action

Update-M365LocalCache
  -ConfigNode <String>
  [<CommonParameters>]

DESCRIPTION

Use the Update-M365LocalCache cmdlet to refresh every supported local object cache from a Microsoft 365 tenant.

See the Notes section for cmdlet requirements.

EXAMPLES

Example 1: Refresh the local cache

Update-M365LocalCache -ConfigNode Source

This example refreshes every supported object cache from a Microsoft 365 tenant.

PARAMETERS

-ConfigNode

The config.psd1 configuration node to use.

Type: String
Parameter Sets: Action
Aliases:
Accepted values: Source, Target

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ShowPrereqs

Prints the cmdlet prerequisites.

Type: SwitchParameter
Parameter Sets: Help
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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.

INPUTS

None

OUTPUTS

None

NOTES

Required config.psd1 keys

These configuration keys are scoped to the Source or Target node in config.psd1.

  • M365ClientId: The client ID of your tenant’s app.

  • M365ClientSecret: The client secret of your tenant’s app.

  • M365SharePointDomain: The name of your SharePoint domain. For example, source.

  • M365Tenant: The ID of your tenant. For example, source.org.

Optional config.psd1 keys

These configuration keys are scoped to the Source or Target node in config.psd1.

  • M365ClientCertificate: The path to the certificate file associated with your tenant’s app.

    Default $env:ProgramData\Transend\tools\TMCTools.pfx

  • M365CloudEnvironment: The cloud environment for your tenant. Allowed values are Global, China (.cn), Germany (.de) and USGovernment (.us).

    Default: Global

Required PowerShell modules

  • ExchangeOnlineManagement
  • PnP.PowerShell

Required APIs

  • Office 365 Exchange Online
  • Microsoft Graph
  • SharePoint

Required Microsoft Graph Application scopes

  • Application.Read.All
  • Domain.Read.All
  • Group.Read.All
  • LicenseAssignment.Read.All
  • OrgContact.Read.All
  • Sites.Read.All
  • Team.ReadBasic.All
  • User.Read.All

Required Office 365 Exchange Online Application scopes

  • Exchange.ManageAsApp

Required SharePoint Application scopes

  • Sites.FullControl.All

General configuration options