Solved

Default printer is not saved between logons

Posted on 2011-09-12
8
6,627 Views
Last Modified: 2013-11-21
We have a customer who have problems with default printers not being saved between logons.
Instead a software printer, "Send to Microsoft OneNote 2010" is set as default printer at every single logon. The software printer is installed at both the RDS servers.

The printers which the user selects as a default printer in the TS session are network printers resided on a Windows Server 2008 R2. The printers are _not_ redirected printers from the client.

We have tried to set a default printer using GPO User Preferences, using the Update option. This works as intended only if the printer is missing in the clients profile. If the printer exists before logon, the default printer will still be the "Send to Microsoft OneNote 2010".

The environment is the following:
The clients are a mix of XP Professional SP3, Windows 7 Enterprise and a few XPE thin clients. All clients are experiencing the problems regardless of client OS.
2 RDS Servers, Windows Server 2008 R2 SP1, load balanced using RR DNS and a RD Connection broker. Users have a central TS roaming profile. Also redirected folders are used.
1 File/Print server, Windows Server 2008 R2 SP1. All network printers are installed at this server. Except for the software servers, such as the above mentioned  "Send to Microsoft OneNote 2010", no servers are installed at the RDS servers.
0
Comment
Question by:DKkonsult
  • 6
8 Comments
 
LVL 3

Expert Comment

by:Krypton-IT-Solutions
Comment Utility
Hello, try creating a logon script to set the users default printer when they logon. Worked for me :). Details can be found following this link.

http://www.computerperformance.co.uk/Logon/LogonScript_Printer_Bonus.htm

Regards
www.krypton-it.com

0
 

Author Comment

by:DKkonsult
Comment Utility
Thanks for answering, but using a script instead of the built in functions such as GP Preferences doesn't feel like the way to go.
Sure, if we won't find any other solution to the problem we may use that as a last resort.

0
 

Expert Comment

by:bosshognz
Comment Utility
Hi,
We have the same situation in a very similar set up (no load balancing however) and are trying to solve it also.  Your print server - did you install the printers using Print Management, and then deploy them via the inbuilt function?  This is what we have done, but think that the printer driver installation might be getting held up at log in and is causing the network printers to load slower than the profile gets loaded - therefore the user's default printer defaults back to the only local printer - a PDF printer.

Do you have any errors in your event logs relating to printers or printer drivers?  Do you have any HP printers?  Don't just look in the Windows Event logs - we found a bunch of driver errors in a custom log.
0
 

Author Comment

by:DKkonsult
Comment Utility
Error was resolved by emptying a number of registry keys under HKCU
0
The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

 

Author Comment

by:DKkonsult
Comment Utility
I've requested that this question be closed as follows:

Accepted answer: 0 points for DKkonsult's comment http:/Q_27303035.html#37372551

for the following reason:

Resolved this issue on my own...
0
 

Accepted Solution

by:
DKkonsult earned 0 total points
Comment Utility
This batch file was used to resolve the issue:

REM DEL_USER_PRINTERS.cmd - Deletes user mapped printers from registry in HKCU
REM Copyright (c) 2011 Kenny Carlsson All rights reserved.
REM
REM
REM  The file userlist.txt has been created by running the command "dir /B >userlist.txt" from the folder that contains the ts roaming profiles.
REM
REM

FOR /F %%G IN (D:\___INSTALL__\userlist.txt) DO (
 MD D:\___INSTALL__\NTUSERDAT_BACKUP\%%G
 attrib -s -h "D:\data\TS_Profile\%%G\NTUSER.DAT"
 Copy "D:\data\TS_Profile\%%G\NTUSER.DAT" D:\___INSTALL__\NTUSERDAT_BACKUP\%%G\
 attrib +s +h "D:\data\TS_Profile\%%G\NTUSER.DAT"
 REG LOAD HKU\ZZZ "D:\data\TS_Profile\%%G\NTUSER.DAT"
 
 REG DELETE HKU\ZZZ\Printers\Connections /f
 REG DELETE HKU\ZZZ\Printers\DevModes2 /f
 REG DELETE HKU\ZZZ\Printers\DevModePerUser /f
 REG DELETE HKU\ZZZ\Printers\Settings /f
 
 REG DELETE "HKU\ZZZ\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Devices" /f
 REG DELETE "HKU\ZZZ\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PrinterPorts" /f
 REG DELETE "HKU\ZZZ\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" /v Device /f
 REG DELETE "HKU\ZZZ\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" /v UserSelectedDefault /f

 REG ADD HKU\ZZZ\Printers\Connections /f
 REG ADD HKU\ZZZ\Printers\DevModes2 /f
 REG ADD HKU\ZZZ\Printers\DevModePerUser /f
 REG ADD HKU\ZZZ\Printers\Settings /f
 
 REG ADD "HKU\ZZZ\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Devices" /f
 REG ADD "HKU\ZZZ\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PrinterPorts" /f
 
 REG UNLOAD HKU\ZZZ
)
0
 

Author Comment

by:DKkonsult
Comment Utility
Please remove the comment #37372551  and use comment #37372591 as the solution.
0
 

Author Closing Comment

by:DKkonsult
Comment Utility
This was the final script used to resolve the issues.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now