I’m was trying to configure the TrustedIssuerCertificate on my RD gateway and experiencing following problem:
$Server = “myrdgw.domain.com”
$Thumbprint = “thumbrpint of my certificate”
$Tsdata = Get-WmiObject –computername $Server –NameSpace “root\TSGatewayFedAuth2” –Class “FedauthSettings”
$TSData.TrustedIssuerCertificates = $Thumbprint
It returned an error:
I tried to reinstall VMM Console plugin with no luck. So I opened new power-shell window and typed all commands manually.
Once successful, script will give you following output: