Getting error in powershell for get-rdserver command

%3CLINGO-SUB%20id%3D%22lingo-sub-1482263%22%20slang%3D%22en-US%22%3EGetting%20error%20in%20powershell%20for%20get-rdserver%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1482263%22%20slang%3D%22en-US%22%3EGetting%20error%20when%20trying%20to%20run%20command%20in%20powershell.%20When%20i%20use%20same%20command%20in%20session%20host%20i%20can%20see%20results%20but%20whenever%20i%20try%20to%20run%20from%20connection%20broker%20itself%20i%20get%20error.%20We%20have%20single%20connection%20broker.%20We%20verified%20all%20required%20services%20are%20working%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3ECommand%20%3A%20Get-RDServer%20-connection%20broker%20%22servername%22%20-role%20RDS-RD-Server%20-verbose%20-debug%3CBR%20%2F%3E%3CBR%20%2F%3EError%20%3A%20Get-Rdserver%3A%20The%20remote%20desktop%20managment%20service%20is%20not%20running%20on%20the%20RD%20connection%20broker%20server.%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1482263%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActive%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EManagement%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENetworking%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1487690%22%20slang%3D%22en-US%22%3ERe%3A%20Getting%20error%20in%20powershell%20for%20get-rdserver%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1487690%22%20slang%3D%22en-US%22%3EWe%20got%20RPC%20server%20is%20unavailable%20error%20while%20checking%20connectivity%20in%20servers%20using%20WMI.%3C%2FLINGO-BODY%3E
New Contributor
Getting error when trying to run command in powershell. When i use same command in session host i can see results but whenever i try to run from connection broker itself i get error. We have single connection broker. We verified all required services are working fine.

Command : Get-RDServer -connection broker "servername" -role RDS-RD-Server -verbose -debug

Error : Get-Rdserver: The remote desktop managment service is not running on the RD connection broker server.
1 Reply
We got RPC server is unavailable error while checking connectivity in servers using WMI.