PC Review


Reply
Thread Tools Rate Thread

Add AD printer globally as the default for multiple users on a PC

 
 
=?Utf-8?B?U1VIZWxwRGVzaw==?=
Guest
Posts: n/a
 
      21st Apr 2006
We are having trouble adding an AD printer globally as the default printer
for multiple users on a single PC. We have a script that will add a global
printer for multiple users on one pc, but cannot find one that will set that
printer to the default for everyone.

Can someone help me with this?
--
Katie Melton
Salisbury University
IT Help Desk
 
Reply With Quote
 
 
 
 
Ramesh, MS-MVP
Guest
Posts: n/a
 
      21st Apr 2006
Hi Katie,

Microsoft Windows 2000 Scripting Guide - Managing Network Printers:
http://www.microsoft.com/technet/scr....mspx?mfr=true

[excerpt]

The SetDefaultPrinter method lets you assign a specific printer the role of
the default printer. SetDefaultPrinter uses the following syntax:
WshNetwork.SetDefaultPrinter(printerName)

The printerName parameter is the UNC name of the printer. (If the printer is
a local printer, you can also use a port name such as LPT1.) This script
sets the printer \\atl-ps-01\colorprinter as the default:
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.SetDefaultPrinter("\\atl-ps-01\colorprinter")

The SetDefaultPrinter method cannot retrieve the current default printer.

[/excerpt]

Examples - "SetDefaultPrinter" method
===========================

How to Add a Default Printer Using a Visual Basic Script:
http://support.microsoft.com/?kbid=263226

How To Set Which Printer Is the System Default Printer:
http://support.microsoft.com/kb/q266767/
(This one is for Microsoft Visual Basic, not for scripting)


Last but not least, here is the MSDN on "SetDefaultPrinter" method:
http://msdn.microsoft.com/library/de...c9fb837f68.asp


--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


"SUHelpDesk" <(E-Mail Removed)> wrote in message
news:904250E7-25D0-477C-9914-(E-Mail Removed)...
We are having trouble adding an AD printer globally as the default printer
for multiple users on a single PC. We have a script that will add a global
printer for multiple users on one pc, but cannot find one that will set that
printer to the default for everyone.

Can someone help me with this?
--
Katie Melton
Salisbury University
IT Help Desk


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Default Printer for All Users =?Utf-8?B?SmFzb24gUnlvbg==?= Windows XP General 3 18th May 2005 11:05 PM
New Default Printer for All Users Tom E. Pinkerton Windows XP Print / Fax 0 23rd Sep 2004 03:54 AM
XP users having same default printer Johnny Windows XP Setup 1 11th Feb 2004 11:18 PM
Set a default printer for all users???? Microsoft Windows 2000 Printing 0 22nd Jan 2004 12:15 PM
can you set a default printer for all users bg Microsoft Windows 2000 New Users 1 19th Aug 2003 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:22 PM.