RDS: Difference between revisions

From Piszczynski
piszczynski>Aleks
(Created page with " == RDS Setup ( Remote desktop services ) == Add roles to the servers for session host, licencing, remote gateway. == RDS licencing error == If you are getting an error wi...")
 
No edit summary
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
== RDS Setup ( Remote desktop services ) ==
== RDS Setup ( Remote desktop services ) ==


Add roles to the servers for session host, licencing, remote gateway.
Add roles to the servers for session host, connection broker and web access. This is required for a basic deployment:<syntaxhighlight lang="powershell">
New-RDSessionDeployment -ConnectionBroker "RDCB.Contoso.com" -WebAccessServer "RDWA.Contoso.com" -SessionHost @("RDSH01.Contoso.com","RDSH02.Contoso.com")
</syntaxhighlight>




Add an RD Gateway server to the deployment:<syntaxhighlight lang="powershell">
Add-RDServer -Server "Gateway.Contoso.com" -Role "RDS-GATEWAY" -ConnectionBroker "RDCB.Contoso.com" -GatewayExternalFqdn "ExternalFQDN.NorthWindTraders.com"
</syntaxhighlight>Add other roles using the same command:
* RDS-VIRTUALIZATION. Remote Desktop Virtualization Host (RD Virtualization Host).
* RDS-RD-SERVER. Remote Desktop Session Host (RD Session Host).
* RDS-CONNECTION-BROKER. RD Connection Broker.
* RDS-WEB-ACCESS. Remote Desktop Web Access (RD Web Access).
* RDS-GATEWAY. RD Gateway.
* RDS-LICENSING. Remote Desktop Licensing (RD Licensing).
Other commands available here: [https://learn.microsoft.com/en-us/powershell/module/remotedesktop/?view=windowsserver2016-ps&viewFallbackFrom=windowsserver2022-ps MS Learn Documentation]
To remove an RDS server from the deployment you can use the following command with the same parameters as the add command:<syntaxhighlight lang="powershell">
Remove-RDServer -Server "RDVH.Contoso.com" -Role "RDS-VIRTUALIZATION" -ConnectionBroker "RDCB.Contoso.com"
</syntaxhighlight>


== RDS licencing error ==
== RDS licencing error ==
Line 14: Line 32:


Set the Remote Desktop licensing mode    Enabled
Set the Remote Desktop licensing mode    Enabled
== RDS Lockdown for end users ==
See this post for details:
http://www.it.ltsoy.com/windows/lock-down-remote-desktop-services-server-2012/
== RDS Licencing for citrix error ==
Citrix sessions require RDS licences and if the RDS licence server is not online then an error will occur on user login
Use this to find the location of all RDS licence servers in the domain, run on domain controller:
*Get-ADObject -Filter {objectClass -eq 'serviceConnectionPoint' -and Name -eq 'TermServLicensing'} | fl

Revision as of 17:57, 15 March 2024

RDS Setup ( Remote desktop services )

Add roles to the servers for session host, connection broker and web access. This is required for a basic deployment:

New-RDSessionDeployment -ConnectionBroker "RDCB.Contoso.com" -WebAccessServer "RDWA.Contoso.com" -SessionHost @("RDSH01.Contoso.com","RDSH02.Contoso.com")


Add an RD Gateway server to the deployment:

Add-RDServer -Server "Gateway.Contoso.com" -Role "RDS-GATEWAY" -ConnectionBroker "RDCB.Contoso.com" -GatewayExternalFqdn "ExternalFQDN.NorthWindTraders.com"

Add other roles using the same command:

  • RDS-VIRTUALIZATION. Remote Desktop Virtualization Host (RD Virtualization Host).
  • RDS-RD-SERVER. Remote Desktop Session Host (RD Session Host).
  • RDS-CONNECTION-BROKER. RD Connection Broker.
  • RDS-WEB-ACCESS. Remote Desktop Web Access (RD Web Access).
  • RDS-GATEWAY. RD Gateway.
  • RDS-LICENSING. Remote Desktop Licensing (RD Licensing).

Other commands available here: MS Learn Documentation

To remove an RDS server from the deployment you can use the following command with the same parameters as the add command:

Remove-RDServer -Server "RDVH.Contoso.com" -Role "RDS-VIRTUALIZATION" -ConnectionBroker "RDCB.Contoso.com"

RDS licencing error

If you are getting an error with a session host not finding a licence server make sure the following settings are enabled in local group policy:

Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Licensing

Use the specified Remote Desktop license servers Enabled

Set the Remote Desktop licensing mode Enabled


RDS Lockdown for end users

See this post for details:

http://www.it.ltsoy.com/windows/lock-down-remote-desktop-services-server-2012/


RDS Licencing for citrix error

Citrix sessions require RDS licences and if the RDS licence server is not online then an error will occur on user login

Use this to find the location of all RDS licence servers in the domain, run on domain controller:

  • Get-ADObject -Filter {objectClass -eq 'serviceConnectionPoint' -and Name -eq 'TermServLicensing'} | fl