Clear-MtConnectionState
Synopsis
Section titled “Synopsis”Forgets the connection of a Maester Pack connector.
Syntax
Section titled “Syntax”Clear-MtConnectionState [[-Service] <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”A pack connector calls this from its Disconnect function (Maester Packs design, section 6.1). Disconnect-Maester also clears the state of every pack service it disconnects. Inside a pack it clears the pack’s own service; outside a pack, -Service is required.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Clear-MtConnectionStateInside a pack connector’s Disconnect function: forgets its connection.
Parameters
Section titled “Parameters”-Service
Section titled “-Service”The connector’s service name, such as CNT.GoogleWorkspace. Needed only when the pack has more than one connector, or outside a pack.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept 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.