Solved

Default printer is not saved between logons

Posted on 2011-09-12
8
6,836 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
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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change administrator password on server 13 92
Join with a SQL Server STUFF 5 36
Migrating Roaming Profiles to new server 5 25
2008 R2 export VM includes VHD 1 5
Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

860 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