Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 5613

Unable to configure the RD Session Host server

$
0
0
 Hi,
although it seem not to have any impact
(once script executed, the VM is added to the RDS Deployment and shows up as member of the correct RDS collection), I'd want to find what's causing this error to show up and fix it.

I'm encountering the below error at the end of a remote desktop session Host "2012 R2" deployment powershell script.

I'm using a VM Template where RDS role is alreay preinstalled
plus a couple of applications (SCOM Agent / antivirus client ) 

powershell script that :
- create the AD object on a specific "OU" for the required RDS collection
- creates the VM 
   (VM is attached to the domain during VMware VM customization step witch is based on sysprep...)
* add the VM to the rds deployment
* adds the VM to the specified rds collection


The error below appears when I try to add the VM into the collection


#add the server to the remote desktop deployment

Add-RDServer-Server$serverFQDN-Role"RDS-RD-SERVER"-ConnectionBroker$activebroker    

#add RDSH server to the collection

Add-RDSessionHost -CollectionName$collection-SessionHost$servername -ConnectionBroker$activebroker #-ErrorAction SilentlyContinue
 

Unable to configure the RD Session Host server server.contoso.net Invalid operation

    + CategoryInfo          : ObjectNotFound: (:) [Add-RDSHServer], RDManagementException

    + FullyQualifiedErrorId : SetRDSessionHostCollectionSetting,Microsoft.RemoteDesktopServices.Management.Cmdlets.AddRDSessionHostServerCommand

   + PSComputerName        : localhost





MCTS Windows Server Virtualization, Configuration




Viewing all articles
Browse latest Browse all 5613

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>