Mapping Printers Part 2

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

In a previous tip we explained how you can install and map printers remotely using a low level command:

rundll32 printui.dll,PrintUIEntry /in /n "\\pntsrv1\HP552"

This will map the printer share and also install drivers if required. A dialog window outputs progress information (unless you also add the switch /q for "quiet operation").

However, for this to work it turns out that on Windows 7 and above, two group policy settings are required:

Computer Configuration > Policies > Administrative Templates > Printers > Allow Print Spooler to accept client connections: Enabled

Computer Configuration > Policies > Administrative Templates > Printers > Disallow installation of printer using kernel-mode drivers: Disabled

It may make sense to check these in your enterprise, because printui can do a lot more:

rundll32 printui.dll,PrintUIEntry /?

Twitter This Tip! ReTweet this Tip!


Posted Apr 27 2012, 06:00 AM by ps1
Copyright 2012 PowerShell.com. All rights reserved.