Hi,
We are trying to remotely run the RDSM PowerShell commands and are getting the same error. Commands run fine locally.
Any help in troubleshooting this ?
Here are the commands I am using :
enter-pssession -computername connectionbroker -authentication default
import-module remotedesktop -credential (get-credential adminuser)
"Remote machine: " + [Environment]::MachineName
"Remote user: " + [Environment]::UserName
"IsAdmin: " + (new-object System.Security.Principal.WindowsPrincipal([System.Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)
get-rdsessioncollection
exit-pssession
And here is the result :
Remote machine: connectionbroker
Remote user: adminuser
IsAdmin: True
get-rdsessioncollection : A Remote Desktop Services deployment does not exist on SSIEXPLAH711.esitintra.saaq.net. This
operation can be performed after creating a deployment. For information about creating a deployment, run "Get-Help
New-RDVirtualDesktopDeployment" or "Get-Help New-RDSessionDeployment".
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-RDSessionCollection
Thanks
-
Edited by
agezez
Friday, February 27, 2015 8:20 PM