Delete inactive TS Ports


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


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


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!


Categories: Networks, Servers, Windows

Tags: ,

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: