Advertisement
Guest User

PS Help

a guest
Sep 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. Remote command:
  2.  
  3. Invoke-Command -ComputerName "RDSGatwayServer" -ScriptBlock {Get-RDSessionHost -CollectionName "RDS"}
  4.  
  5. Error:
  6.  
  7. A Remote Desktop Services deployment does not exist on RDSGatewayServer.Test.lab. This operation can be performed after creating a deployment. For information about creatin
  8. g a deployment, run "Get-Help New-RDVirtualDesktopDeployment" or "Get-Help New-RDSessionDeployment".
  9. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  10. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-RDSessionHost
  11. + PSComputerName : RDSGatewayServer
  12.  
  13.  
  14. Running the command local:
  15.  
  16.  
  17. CollectionName SessionHost NewConnect
  18. ionAllowed
  19. -------------- ----------- ----------
  20. rds SRVVRDS06.test.lab Yes
  21. rds SRVVRDS03.test.lab Yes
  22. rds SRVVRDS05.test.lab Yes
  23. rds SRVVRDS04.test.lab Yes
  24. rds SRVVRDS01.test.lab Yes
  25. rds SRVVRDS07.test.lab Yes
  26. rds SRVVRDS02.test.lab Yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement