Registered: 1451592353 Posts: 177
Reply with quote #1
Wanted to be able to pull data about RDP sessions on the localhost into PowerShell in a civilized manner ;-)
After pulling my hair out for like forever trying to load native Windows APIs into my PS module, finally I gave up and wrote a short one in C#. Feel free to have a look, maybe it helps some ;-) http://www.it-pro-berlin.de/rdexsessioninfo-en/ When I find time, I'll try to pull some more info in there but for the time being, you get the slightly enhanced basics. __________________ Evgenij Smirnov My personal blog (German): http://www.it-pro-berlin.de/ My stuff on PSGallery: https://www.powershellgallery.com/profiles/it-pro-berlin.de/
Registered: 1451680221 Posts: 165
Reply with quote #2
Brilliant! Will add it to my 'toolbox'
__________________ Have SpaceSuit, Will Travel
Associate Troublemaker Apprentice
Registered: 1451575798 Posts: 741
Reply with quote #3
I've learnt several new things in my efforts to get it installed...
But I found out. # to install PSGet to get the module (new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex # To save module Save-Module -Name RDExSessionInfo -Path d:\powershell # To install module Install-Module -Name RDExSessionInfo # To Run Get-RDExSessionInfo | Get-Member Next to use it on something... Thanks for sharing Evengij __________________ Have you tried turning it off and walking away? The next person can fix it!
New to the forum? Read this