TechShizz | All posts tagged 'Printing'

Allow Domain Users to install their own printers

To do this you need to create a GPO scoped to the Domain Computers group and assign the following policies.

1.Computer Config\Administrative Templates\Printers\Point and Print Restrictions
[Enabled]


2. Computer Config\Policies\Windows Settings\Security Settings\Local Policies\Security Options\



3.Computer Configuration\Policies\Administrative Templates\System\Driver Installation

The setting is called "Allow non-administrators to install drivers for these devices setup classes".
You will need to add thedevice class GUID of printers:  {4d36e979-e325-11ce-bfc1-08002be10318}

How to clear a print queue that won't clear

Sometimes the print queue won't clear, even if your an administrator: try this...

1. Stop the print spooler
2. Delete the files in %systemroot%\System32\spool\printers\
3. Start the spooler

This can be scripted as:

net stop spooler

del %systemroot%\System32\spool\printers\* /Q /F /S

net start spooler


Remote Desktop crashes when printing with error: "Remote Desktop Connection has stopped working"

When printing from a remoteApp the remote desktop session crahes and displays "Remote Desktop Connection has stopped working".


This issue was occuring on a laptop which was on a docking station - A Toshiba Dynadock U3.0. I found a solution to this issue by updating the driver for the Dynadock.

Firstly I removed the driver for "Display Link" from Device Manager.
I then tested printing, it worked OK.
I then had to install the newest driver for the Dynadock. This was found at http://support.toshiba.com/support/modelHome?freeText=3286829

Once installed printing worked normally and the docking station worked normally.

This link was also very useful: https://social.technet.microsoft.com/Forums/sharepoint/en-US/2a9c4d85-c943-41f6-9474-9ed1f956cffe/printing-crashes-rdp-session?forum=winserverTS

Add a printer from command line

Here is a handy batch file usful for scripting.

@Echo Off
REM Add printer
rundll32 printui.dll,PrintUIEntry /in /n \\Domain.local\PrinterName
REM Set printer as default
rundll32 printui.dll,PrintUIEntry /y /n \\Domain.local\PrinterName
exit