Delete inactive TS Ports

NewImage

If you are managing a terminal server and the print spooler is driving you crazy from time to time, consider the following solutions

1. https://inactivetsport.codeplex.com 

This guy created a program that deletes all the inactive TS ports created over time. Check it out

2. The famous Microsoft Fix 50126. Look it up HERE by the microsoft “fix it” team.

3. Write the following .bat file and run it in a scheduler

Echo off

cls

Echo Clearing spooler service, jobs and printers….

net stop spooler

Echo Services Stopped.

del C:\WINDOWS\system32\spool\PRINTERS\*.* /q

Echo Print Subsystem Purged

net start spooler

Echo Services Started

Echo Complete!

Advertisements


Categories: Networks, Servers, Windows

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: