Share via


Register-PartnerTokenCache

Registers the specified token cache for the module.

Syntax

ByPersistent (Default)

Register-PartnerTokenCache
    [-Persistent]
    [<CommonParameters>]

ByInMemory

Register-PartnerTokenCache
    [-InMemory]
    [<CommonParameters>]

Description

Registers the specified token cache for the module.

Examples

Example 1

PS C:\> Register-PartnerTokenCache -InMemory

Registers the in-memory token cache for the module.

Example 2

PS C:\> Register-PartnerTokenCache -Persistent

Registers the persistent token cache for the module.

Parameters

-InMemory

A flag indicating that the in-memory token cache should be registered.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByInMemory
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Persistent

A flag indicating that the persistent token cache should be registered.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByPersistent
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object