All of my powershell commands against my RDS 2012 VDI deployment are failing except for Get-RDConnectionBrokerHighAvailability with the error message:
PS C:\Users\administrator.JR> Get-RDCertificate
Get-RDCertificate : A Remote Desktop Services deployment does not exist on PRWINVDI-03.jr.local. This operation can be
performed after creating a deployment. For information about creating a deployment, run "Get-Help Set-VDIDeployment"
or "Get-Help Set-RDSHDeployment".
At line:1 char:1
+ Get-RDCertificate
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-RDCertificate
I have tried powershell with RunAs administrator and that did not work either. In addition, Get-Help Set-VDIDeployment does not exist nor does Set-VDIDeployment.
After some more prodding, it seems like the only way I can get it to work is to specify the individual host name that is the active conn broker machine like this: Get-RDVirtualDesktopCollectionConfiguration -ConnectionBroker prwinvdi-04.jr.local
it should work with the ha dns name like this: Get-RDVirtualDesktopCollectionConfiguration -ConnectionBroker rdcb2012.jr.local
any ideas?