Skip to content

Remove-LMCachedAccount

Syntax

Single

Terminal window
Remove-LMCachedAccount -CachedAccountName <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]

All

Terminal window
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

Terminal window
Remove-LMCachedAccount -CachedAccountName "JohnDoe"
Removes the cached account with the name "JohnDoe" from the Logic.Monitor vault.

Example 2

Terminal window
Remove-LMCachedAccount -RemoveAllEntries
Removes 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: String
Parameter Sets: Single
Aliases: Portal
Required: True
Position: Named
Default value: None
Accept 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: SwitchParameter
Parameter Sets: All
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept 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.