Remove-LMCachedAccount
Syntax
Section titled “Syntax”Single
Section titled “Single”Remove-LMCachedAccount -CachedAccountName <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Remove-LMCachedAccount [-RemoveAllEntries] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The Remove-LMCachedAccount function is used to remove cached account information from the Logic.Monitor vault. It provides two parameter sets: ‘Single’ and ‘All’. When using the ‘Single’ parameter set, you can specify a single cached account to remove. When using the ‘All’ parameter set, all cached accounts will be removed.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Remove-LMCachedAccount -CachedAccountName "JohnDoe"Removes the cached account with the name "JohnDoe" from the Logic.Monitor vault.Example 2
Section titled “Example 2”Remove-LMCachedAccount -RemoveAllEntriesRemoves all cached accounts from the Logic.Monitor vault.Parameters
Section titled “Parameters”-CachedAccountName
Section titled “-CachedAccountName”Specifies the name of the cached account to remove. This parameter is used with the ‘Single’ parameter set.
Type: StringParameter Sets: SingleAliases: Portal
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False-RemoveAllEntries
Section titled “-RemoveAllEntries”Indicates that all cached accounts should be removed. This parameter is used with the ‘All’ parameter set.
Type: SwitchParameterParameter Sets: AllAliases:
Required: FalsePosition: NamedDefault value: FalseAccept 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”Fill ProgressAction Description
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.
Inputs
Section titled “Inputs”You can pipe objects to this function.
Section titled “You can pipe objects to this function.”Outputs
Section titled “Outputs”This function does not generate any output.
Section titled “This function does not generate any output.”This function operates on the local credential vault and does not require API authentication.