Windows Server® 2008 Terminal Services Resource Kit

Scripts and Tools

View the Scripts and Tools for Windows Server® 2008 Terminal Services Resource Kit.

Microsoft Scripts and Tools


Configure Terminal Services Clients as Network Access Protection (NAP) Enforcement Clients for TS Gateway
 

The Terminal Services NAP client configuration command (Tsgqecclientconfig.cmd) helps configure Terminal Services clients as NAP enforcement clients for TS Gateway.


Process Monitor v2.02
 

Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity. It combines the features of two legacy Sysinternals utilities, Filemon and Regmon, and adds an extensive list of enhancements including rich and non-destructive filtering, comprehensive event properties such session IDs and user names, reliable process information, full thread stacks with integrated symbol support for each operation, simultaneous logging to a file, and much more. Its uniquely powerful features will make Process Monitor a core utility in your system troubleshooting and malware hunting toolkit.


Terminal Server PnP Device Redirection Framework Test Tool
 

Independent software vendors (ISVs) and driver writers who want to be sure that their drivers are compatible with the framework can use the Terminal Server PnP Device Redirection Framework Test Tool.


Terminal Services Team Blog Terminal Services (TS) Remote Configuration Primer Part 1
 

Team blog for Terminal Services (TS) Remote Configuration Primer Part 1.


Terminal Services Team Blog Terminal Services (TS) Remote Configuration Primer Part II
 

Terminal Services Team Blog Terminal Services (TS) Remote Configuration Primer Part II.


Terminal Services Web Access with Silverlight BETA
 

This is the new release of TS Web Access with Silverlight BETA. Many improvements have been done from the last prototype (TS Web Access with Silverlight ALPHA), especially on the backend code. Now the icon will consume MsRdpClientShell that invoke the information of RDPFileContents from the Windows Management Instrumentation (WMI) through ActiveX, rather than link to the RDP file in ALPHA version.


User Profile Deletion Utility Tool (Delprof.exe)
 

Delprof.exe is a command-line utility that you can use to delete user profiles on a local or remote computers running Windows 2000, Windows XP, and Windows Server 2003.


Third-party Scripts and Tools



Ericom PowerTerm WebConnect
 

Ericom's PowerTerm WebConnect for Windows Server 2008 is designed to support organizations of any size and scenarios of all complexity looking to simplify the deployment of business-critical applications, management and the user experience of the Windows Server 2008 Terminal Services platform. Additional benefits include simplicity in setting up and using the Windows Server 2008 environment, optimized IT environments for numerous users and terminal servers, user-Friendly Application Zone and Application Portal, and streamlined application publishing and availability for users and groups of users.


FileRecent by AppSense
 

This tool facilitates the searching of files modified, created or accessed either between two times/dates or within a specified period from the present time. This can be a very useful tool for finding what files relate to a specific application's configuration and also for troubleshooting problems such that changes to the file system, that may be the cause of a failure such as a newly added printer driver, can be precisely located.


Flex Profiles by Immidio
 

Flex Profiles optimizes the management of user profiles in virtualization environments based on Microsoft Terminal Services, Citrix Presentation Server / XenApp, Microsoft SoftGrid / App-V or Virtual Desktop Infrastructures (both 32-bit and 64-bit). This includes the application-specific handling of both registry settings and configuration files during user logon and logoff. Individual configuration files for different applications allow modifying the behavior of the Flex Profiles logic.


Regrecent by AppSense
 

Regrecent.exe facilitates the searching of registry keys modified either between two times/dates or within a specified period from the present time. This can be a very useful tool for finding what registry entries relate to a specific application's configuration and also for troubleshooting problems such that changes to the system, that may be the cause of a failure such as a newly added device driver, can be precisely located.


Server-reboot-failed.vbs
 

Ties the script to a particular event that might occur from Terminal Services. This capability is a new feature of the Windows Server 2008 Event Log Subsystem. If that event occurs, this script is executed to send an email.


vADM by visionapp
 

This is visionapp's Application Delivery Management (vADM) suite. It enhances your Microsoft environment with 1) visionapp Workspace Management (vWM), a dynamic, powerful user application portal; and 2) visionapp Server Management (vSM).


vRD by visionapp
 

Remote Desktop 2008 (vRD 2008) is a powerful tool for managing and accessing multiple Windows servers and desktops via RDP (Remote Desktop Protocol).


Scripts and Tools on the CD


Browse the scripts on CD
 

ActiveSessions.ps1

Gets the number of active sessions for a named server and writes the date and the count to a CSV file.

 

appaudit.vbs

These scripts put together in one: checkfile.vbs, count-email.vbs, proccleanup.vbs, queryts.vbs, runbatch.vbs, tsnames.vbs

 

checkfile.vbs

Check to see a file is empty, if not then remove last carriage return

 

checklogon.ps1

Checks the current logon mode for the terminal server

 

CommittedBytes.ps1

This script gets Memory Committed Bytes for a named server and writes the date and the count to a CSV file.

 

count-email.vbs

Count the lines in the file processes.txt. If number is higher than specified number, email alert.

 

emailonfail.bat

runs server-reboot-failed.vbs is event ID is found in system log (server-reboot-failed.vbs is linked on the CD)

 

getservers.ps1

Gets all the server names and puts them into a file.

 

getusers.ps1

Gets all the user names and puts them into a file named ashusers.txt

 

Network_Diagram_CD.vsd

A network diagram hooked to an Excel spreadsheet. Update the spreadsheet to update the diagram

 

Network_Diagram_CD.xlsx

Network Diagram spreadsheet - hooked to Network_Diagram_CD.vsd

 

PercentProcTime.ps1

Gets the percent processor time count for a named server and writes the date and the count to a CSV file

 

proccleanup.vbs

Remove the unneeded lines from a file

 

processes.bat

Gets processes from a list of terminal servers and pipes them to a file (run with runbatch.vbs)

 

queryts.vbs

Get list of terminal servers on a network (used with termserv.bat)

 

runbatch.vbs

Get all processes running on a list of terminal servers (used with processes.bat)

 

schedreboot.bat

Scheduled reboot command using schtasks.exe

 

SDDatabaseDump.vbs

Dumps the contents (clusters and associated sessions) of the Session Directory database

 

ServerInventory.xlsx

A simple spreadsheet for inventorying terminal servers in a low-complexity environment

 

shadowcheck.ps1

included on the media as ServerInventory.xls

 

termserv.bat

Runs qery termserv command and pipes to a file (run with queryts.vbs)

 

TS License Server Report.exe

Determines the issued license count

 

TSGCurrentConnections.ps1

Gets the number of current sessions running on a TS Gateway server for a named server and writes the date and the count to a CSV file.

 

TSnames.vbs

Gets Terminal server computer list from AD terminal server OU, write terminal server names to terminalservers.txt