Remove-LMCachedAccount
Syntax
Section titled “Syntax”Single
Section titled “Single”Remove-LMCachedAccount -CachedAccountName <string> [-WhatIf] [-Confirm] [<CommonParameters>]Remove-LMCachedAccount [-RemoveAllEntries] [-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: System.StringDefaultValue: ''SupportsWildcards: falseAliases:- PortalParameterSets:- Name: Single Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: true ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RemoveAllEntries
Section titled “-RemoveAllEntries”Indicates that all cached accounts should be removed. This parameter is used with the ‘All’ parameter set.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: All Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “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.