For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove-RDMEntryPasswordListItem

Synopsis

Remove an item from a Password List entry

Syntax

__AllParameterSets

Remove-RDMEntryPasswordListItem -InputObject <PSConnection> -Item <PSPasswordListItem>
 [-PassThru] [-Refresh] [-Set] [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Remove an item from a Password List entry, preserving the other items in the list. Pass the entry as InputObject and the item to remove, obtained from Get-RDMEntryPasswordListItem, as the Item parameter. The item is removed from the object in memory; use the Set switch to persist the change, or call Set-RDMEntry afterwards. Removing an item that is not in the list produces an error. An entry that is not a Password List produces an error.

Examples

Example 1

PS C:\> $entry = Get-RDMEntry -Name 'MyPasswordList';
PS C:\> $item = $entry | Get-RDMEntryPasswordListItem -Name 'prod-db';
PS C:\> $entry | Remove-RDMEntryPasswordListItem -Item $item -Set

Remove the 'prod-db' item from the Password List entry and save the entry.

Parameters

-Confirm

Prompts for confirmation before running the cmdlet.

-ForcePromptAnswer

Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:

  • Yes: Accept the prompt. Cover the OK and Automatic value.

  • No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

-InputObject

Specifies the Password List entry that holds the item to remove.

-Item

The item to remove. Obtained from Get-RDMEntryPasswordListItem.

-PassThru

Return the entry.

-Refresh

Send a refresh notification to the Remote Desktop Manager application. Requires the Set switch to persist the change.

-Set

Save the entry in the current workspace. Without it, the item is only removed from the in-memory entry.

-VaultMode

Vault where the command will be applied. Three choices are offered: - Default: Current vault that has been set. - User: Vault specific to the current user. - Global: Global vault of the workspace.

-WhatIf

Shows what would happen if the cmdlet were to run. The cmdlet does not run.

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.

Inputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

Password List entry that holds the item to remove. Can be obtained from Get-RDMEntry.

Outputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection

The entry, returned with the PassThru parameter.

Notes

For more information, type "Get-Help Remove-RDMEntryPasswordListItem -detailed". For technical information, type "Get-Help Remove-RDMEntryPasswordListItem -full".

Last updated

Was this helpful?