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

Set-RDMEntryUsername

Synopsis

Set the username on the specified entry.

Syntax

Id

Set-RDMEntryUsername [-ID] <guid> [-Username] <string> [-PassThru] [-Refresh] [-Set]
 [-VaultMode <VaultMode>] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

InputObject

Set-RDMEntryUsername [-InputObject] <PSConnection> [-Username] <string> [-PassThru] [-Refresh]
 [-Set] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Set the username on the specified entry. To persist the new username, the switch Set must be used. To modify the username, the user must have the appropriate rights: add for a new entry, and edit for an existing one.

Examples

Example 1

Update the specified entry's username to 'newUserName'

Example 2

Modify the domain, password and username of the entry named 'UniqueName'. The variable $securePassword is a secure string previously set. Persist the modification with the Set-RDMSession call.

Parameters

-Confirm

Prompts you 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.

-ID

ID of the entry to modify. Use the VaultMode parameter to search in the User vault or the Global vault.

-InputObject

Specifies the entry to set the username to.

-PassThru

Return the modified entry.

-Refresh

Send refresh notification to Remote Desktop Manager application. Use Set switch to persist the modification.

-Set

Save the modified entry.

-Username

New username.

-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 runs. The cmdlet is 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

PSConnection object of the entry to modify the username from.

Notes

For more information, type "Get-Help Set-RDMEntryUsername -detailed". For technical information, type "Get-Help Set-RDMEntryUsername -full".

Last updated

Was this helpful?