Skip to content

Remove-LMCachedAccount

Terminal window
Remove-LMCachedAccount -CachedAccountName <string> [-WhatIf] [-Confirm] [<CommonParameters>]
Terminal window
Remove-LMCachedAccount [-RemoveAllEntries] [-WhatIf] [-Confirm] [<CommonParameters>]

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.

Terminal window
Remove-LMCachedAccount -CachedAccountName "JohnDoe"

Removes the cached account with the name “JohnDoe” from the Logic.Monitor vault.

Terminal window
Remove-LMCachedAccount -RemoveAllEntries

Removes all cached accounts from the Logic.Monitor vault.

Specifies the name of the cached account to remove. This parameter is used with the ‘Single’ parameter set.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Portal
ParameterSets:
- Name: Single
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

Indicates that all cached accounts should be removed. This parameter is used with the ‘All’ parameter set.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.