Test-RDVirtualDesktopADMachineAccountReuse

Test-RDVirtualDesktopADMachineAccountReuse

Detects whether the RD Connection Broker server is configured to reuse existing AD DS computer accounts.

Syntax

Parameter Set: Default
Test-RDVirtualDesktopADMachineAccountReuse [[-ConnectionBroker] <String> ] [ <CommonParameters>]

Detailed Description

The Test-RDVirtualDesktopADMachineAccountReuse cmdlet detects whether the Remote Desktop Connection Broker (RD Connection Broker) server is configured to reuse existing Active Directory Domain Services (AD DS) computer accounts when you create new virtual machines in a managed virtual desktop collection.

Parameters

-ConnectionBroker<String>

Specifies the Remote Desktop Connection Broker (RD Connection Broker) server for this remote desktop deployment. If not supplied, defaults to the fully qualified domain name (FQDN) of the local host.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Null

    None.

Examples

Example 1: Detect whether account reuse is configured

This command detects whether the RD Connection Broker server is configured to reuse existing AD DS computer accounts when you create new virtual machines in a managed virtual desktop collection.

PS C:\> Test-RDVirtualDesktopADMachineAccountReuse -ConnectionBroker "rdcb.contoso.com"

Enable-RDVirtualDesktopADMachineAccountReuse

Disable-RDVirtualDesktopADMachineAccountReuse