Grant-RDOUAccess
Grant-RDOUAccess
Grants the Remote Desktop Connection Broker server access to one or more organizational units in a given domain of Active Directory Domain Services.
Syntax
Parameter Set: Default
Grant-RDOUAccess [[-Domain] <String> ] [-OU] <String> [[-ConnectionBroker] <String> ] [ <CommonParameters>]
Detailed Description
The Grant-RDOUAccess cmdlet grants the Remote Desktop Connection Broker (RD Connection Broker) server access to one or more organizational units (OUs) in a given domain of Active Directory Domain Services (AD DS).
The RD Connection Broker must have Read access to an OU to query user account information.
Parameters
-ConnectionBroker<String>
Specifies an RD Connection Broker server for a remote desktop deployment. If you do not supply a value, the cmdlet uses the fully qualified domain name (FQDN) of the local computer.
Aliases |
none |
Required? |
false |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Domain<String>
Specifies an Active Directory (AD) domain to which to grant access.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-OU<String>
Specifies one or more OUs to which to grant access.
Aliases |
none |
Required? |
true |
Position? |
2 |
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.
- System.Object
Examples
Example 1: Grant the RD Connection Broker access to the Computers OU
This command grants the RD Connection Broker server named Rdcb.Contoso.com access to the OU named Computers.
PS C:\> Grant-RDOUAccess -ConnectionBroker "Rdcb.Contoso.com" -OU "Computers"