Mark Minasi's Tech Forum
Register Calendar Latest Topics Chat
 
 
 


Reply
  Author   Comment  
cj_berlin

Avatar / Picture

Senior Member
Registered:
Posts: 227
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/
0
Infradeploy

Avatar / Picture

Senior Member
Registered:
Posts: 166
Reply with quote  #2 
Brilliant! Will add it to my 'toolbox'
__________________
Have SpaceSuit, Will Travel

0
wobble_wobble

Avatar / Picture

Associate Troublemaker Apprentice
Registered:
Posts: 808
Reply with quote  #3 
I've learnt several new things in my efforts to get it installed...

Code:

# 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

But I found out.
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
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.