MAP a Printer

  • Thread starter Thread starter WB
  • Start date Start date
W

WB

Could anyone direct me on a way I can map a default when a users logs on
using a GPO

thanks

w
 
Could anyone direct me on a way I can map a default when a users logs on
using a GPO

thanks

w
The default printer is stored in the Device value name at HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows.

See tip 672 in the 'Tips & Tricks' at http://www.jsiinc.com

You cxould create a custom ADM file for group policy.

See tip 8532 » Using Administrative Template Files with Registry-Based Group Policy.



Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Here is a sample VBS file that someone gave me


Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\ServerName\Printer Share Name"
WshNetwork.RemovePrinterConnection "\\ServerName\Printer Share Name"

WshNetwork.SetDefaultPrinter "\\ServerName\Printer Share Name"


If you use this in GP's at the User Login works great. This is an example
of how to add, remove and set default printer.

James
 
Back
Top