Does anyone know of a Terminal services module that will grab information about the RDS connections to a terminal server? The module ‘psterminalservices’ no longer seems to be available.
Import-Module : The specified module 'psterminalservices' was not loaded because no valid module file was found in any module directory.
+ CategoryInfo : ResourceUnavailable: (psterminalservices:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Hmmm … I don’t know what you expect but at least since Windows Server 2012 R2 RDS there are 2 Powershell modules built in. Depending on what information you’re after you could use Get-RDUserSession from the module RemoteDesktop.
For now I am looking for something similar to what ‘Qwinsta’ outputs put something I can easily manipulate as an object with Properties and methods.
Even when I run PS as an admin, it can’t find this module either.
PS C:\Users\bclanton\Google Drive\Code> Import-Module RemoteDesktop
Import-Module : The specified module 'RemoteDesktop' was not loaded because no valid module file was found in any module directory.
At line:1 char:1
+ Import-Module RemoteDesktop
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (RemoteDesktop:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
I am wondering if you meant 'RemoteDesktopServices'.
... nope. ;-) I meant what I wrote. Powershell Module RemoteDesktop. What information are you after actually? If you have a tool what provides you with the information you want you could simply parse the output and pick the pieces you need .