Receive gateway from local network interface with PowerShell

25. November 2015

blog.feldmann.io

PowerShell Version: >1
Modules: none

I needed a way to log the first local interface’s gateway for debugging reasons, here is how I did it:

Enable Users to log off their own RDP TS session with PowerShell

24. November 2015

ps

PowerShell Version: >1
Modules: none

This script will check your TS servers for a session with $env:Username and logoff that session. This of course only works if $env:username on client and TS are the same 😉 Also I made an effort to make it work on PS v1 for all clients to be able to execute this.