Remote Desktop Services R2 Resource Kit

Tuesday, November 23, 2010

My new friends Christa Anderson and Kristin L. Griffin wrote the Microsoft Windows Server 2008 R2 Remote Desktop Services Resource Kit for which they asked me to contribute a “From the Field” article that examines the PowerShell TS Module I created.  This is the code example I wrote for them. The script gets all RD Session host servers in a domain, finds all active sessions that have been running for over an hour and disconnects them in order to save server resources:   1. Shows the usage of the -WhatIf parameter, what...

PSTerminalServices – PowerShell module for Terminal Services

Monday, February 22, 2010

PSTerminalServices is a PowerShell module that helps you manage Terminal Services (including Remote Desktop connections) sessions and processes. No more legacy applications text parsing! The module is based on an open source project named Cassia (version, a .NET library for accessing the native Windows Terminal Services API.     What you can do with it The following operations are supported on local and remote computers: Enumerating terminal sessions and reporting session information including connection state, user name, client name, client display details, client-reported IP address, and client build number. Logging off a session.     Disconnecting a session.    Displaying a message box in...