Terminal Server is not clearing the printers when a user logs off

We have a Terminal server that runs Windows Server 2003 Enterprise.

When users log on, and log off the server, frequently the server will not clear out the printers that were redirected from their PC.

I've verified they are logging off and not just disconnecting.

Every time I have to restart the server to clear out the inactive TS ports and excess printers.

How can I keep these duplicates from being added? I've even installed that Hive cleaner from Microsoft, but with no luck.

Drakin030Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brum07Commented:
You could add a logoff script to the GPO for the users which will delete all the mapped printers

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_23215490.html
0
Drakin030Author Commented:
Not sure if that's going to work right, I tinkered with it over the weekend, but it seemed a bit inconsistent.

Is there a way to re-install the print spooler or something on the server?

Maybe someone on the server got corrupted?
0
Daniel BorgerSenior Citrix Engineer- CCEECommented:
Check your hotfixes, I have seen this behavior resolved by intalling Citrix hotfixes.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Drakin030Author Commented:
Ran all MS Updates, and looked around regarding Citrix stuff but couldn't fine anything. We have a second server that load balances, and it doesn't have the same issue.
0
Daniel BorgerSenior Citrix Engineer- CCEECommented:
is it clearing off the users profile as well from documetns and settings?
0
Drakin030Author Commented:
It's not. Under Documents and settings, the profiles are still stored.

We have somewhat of a roaming profile system where the profiles syncronize with a storage system. That way if a user logs onto another server, that profile is then loaded up from the storage system so the data is up to date.
0
Daniel BorgerSenior Citrix Engineer- CCEECommented:
are you using uphclean to unload the users registry?
0
Drakin030Author Commented:
Not sure what that is so I'm assuming no.

The only extra tool I use is Microsoft Hive cleaner which cleans stuff up when a user logs off.
0
Daniel BorgerSenior Citrix Engineer- CCEECommented:
yeah, same thing.

try using this tool to verify the setting are the same on both servers. Also check the Citrix policies
http://www.citrixtools.net/en/Articles/articleType/ArticleView/articleId/7/Citrix-Print-DefaultPrnFlags-Tool-Documentation.aspx
0
pnrhaitCommented:
I am not sure what kind of log on script you use but I ran into the same problem. I just simply but a remove printer at the beginning of the script that had it recreate the mappings so it looks something like this:

objNetwork.RemovePrinterConnection "\\server\sharename"
IsAMemberOf(objNetwork.UserDomain,objNetwork.UserName,"ADsecuritygroup") Then AddPrinterConnection "\\server\sharename"

Hope this helps
0
Drakin030Author Commented:
See I tried something like that, but what was interesting is when you tried to remove the printer, it gave out an error saying it was unable to do so. If I restarted the server I would then be able to remove the printer.

I'm afraid if I set a script like that, it would spit out errors to users trying to connect.
0
pnrhaitCommented:
What OS are you using on the client end. If it is Vista it just places nasty cause it wants the drivers to be installed locally.. I had one machine doing it had to use my domain admin account to clear the errors the first time.
0
Drakin030Author Commented:
99% of the computers are all XP, I think mine is the only Vista PC.

The thing is; this runs LIKE a citrix environment but it's not really Citrix. It's 2x, which publishes applications to a users desktop using RDP.

So really in theory it's just RDP that looks nicer.
0
pnrhaitCommented:
Are you using any 3rd party software such as thinprint? if you are are you also creating your printers with the driver free native printing setup?
0
Drakin030Author Commented:
No third party software, however I think the issue has been resolved. I used the print spooler clearner and finally got it to work. It must have been a bad printer driver.

I think migrated over the printer settings from the mirrored server and everything was working again.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.