Solved

Default printer is not saved between logons

Posted on 2011-09-12
8
6,898 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
8 Comments
 
LVL 3

Expert Comment

by:Krypton-IT-Solutions
ID: 36522228
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
ID: 36529638
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
ID: 36944359
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:DKkonsult
ID: 37372551
Error was resolved by emptying a number of registry keys under HKCU
0
 

Author Comment

by:DKkonsult
ID: 37372596
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
ID: 37372591
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
ID: 37372597
Please remove the comment #37372551  and use comment #37372591 as the solution.
0
 

Author Closing Comment

by:DKkonsult
ID: 37395653
This was the final script used to resolve the issues.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

749 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