Remove-LMCachedAccount
Syntax
Single
Remove-LMCachedAccount -CachedAccountName <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
All
Remove-LMCachedAccount [-RemoveAllEntries] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
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
Example 1
Remove-LMCachedAccount -CachedAccountName "JohnDoe"Removes the cached account with the name "JohnDoe" from the Logic.Monitor vault.
Example 2
Remove-LMCachedAccount -RemoveAllEntriesRemoves all cached accounts from the Logic.Monitor vault.
Parameters
-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
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
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
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
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept 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
You can pipe objects to this function.
Outputs
This function does not generate any output.
Notes
This function operates on the local credential vault and does not require API authentication.