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

Restore-RDMDeletedUser

Synopsis

Restore a soft-deleted user.

Syntax

Id

Restore-RDMDeletedUser [-ID] <guid> [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

InputObject

Restore-RDMDeletedUser -InputObject <PSUserInfo> [-ForcePromptAnswer <DialogResult[]>] [-WhatIf]
 [-Confirm] [<CommonParameters>]

Description

Restore a soft-deleted user in the workspace. The cmdlet works with workspaces that support deleted user management (currently only Devolutions Server). After restoration, the user can be retrieved using Get-RDMUser.

Examples

Example 1

PS C:\> Restore-RDMDeletedUser -ID "3c5d7e8f-9a1b-4c2d-8e3f-4a5b6c7d8e9f"

Restore the user with the specified ID.

Example 2

Restore a deleted user by name via pipeline.

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

User ID to restore.

-InputObject

Deleted users fetched from Get-RDMDeletedUser.

-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.PSUserInfo

Deleted users from Get-RDMDeletedUser.

Notes

For more information, type "Get-Help Restore-RDMDeletedUser -detailed". For technical information, type "Get-Help Restore-RDMDeletedUser -full".

Last updated

Was this helpful?