?
Solved

Default printer is not saved between logons

Posted on 2011-09-12
8
Medium Priority
?
7,193 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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

800 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