Networking Forums

Networking Forums > Computer Networking > Windows Networking > Rename printer script

Reply
Thread Tools Display Modes

Rename printer script

 
 
Reedler
Guest
Posts: n/a

 
      06-02-2005, 08:12 PM
I have the below vb script to add a printer and it works fine. However I
would like to rename the printer and only have the script run if the user
does not have the printer installed already. The script is below. New to
scripting so any help much appreciated. Thanks!

Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\servername.com\HP Laser Printer"
WshNetwork.AddWindowsPrinterConnection PrinterPath


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Help: VBS script to connect to domain printer from outside the dom JohnBates Windows Networking 5 04-01-2008 07:23 PM
How can I rename a networked printer Corey Arndt Windows Networking 0 11-16-2007 05:18 PM
Specifying script as printer backend loial Linux Networking 4 04-25-2006 08:12 PM
Specyfing script as printer bakend loial Linux Networking 0 04-25-2006 12:06 PM
Printer script error Mervin Williams Windows Networking 0 04-07-2005 05:15 PM



1 2 3 4 5 6 7 8 9 10 11