Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-11-2007, 03:14 PM   #1
Ob1
EGO MY LEGO
 
Ob1's Avatar
 
Join Date: Dec 2004
Location: Tatooine, Binary Star System
Posts: 1,740
Send a message via MSN to Ob1 Send a message via Yahoo to Ob1
Scripting Network Printers?

We are decommissioning an old server that currently is one of our print servers (printserver1). We want to create a login script to check and remove all printers on printserver1 then check and add those same printers which have been loaded and shared out on our new print server (printserver2). All machines are running XP pro w/ SP2. we have about 200 users in our office. I've never done scripting before except for simple batch files, so any guidance, help, suggestions would be great. i found this sample script to add multiple network printers. Here is the example script:

' VBScript to map two printers from two servers
' Guy Thomas February 2004.
' ******************************
Dim multiPrinter, UNCpath1, UNCpath2
UNCpath1 = "\\Server1\printer1"
UNCpath2 = "\\Server2\printer2"
Set multiPrinter = CreateObject("WScript.Network")
multiPrinter.AddWindowsPrinterConnection UNCpath1
multiPrinter.AddWindowsPrinterConnection UNCpath2
WScript.Echo "Your printer is mapped from : " & UNCpath1 _
& "and from : " & UNCpath2
WScript.Quit
' End of example VBScript

Since this will be used as a login script, how do i get it to run a check to see if the printers are already installed, and if they are already installed, then it moves on to the next printer? i DON'T want the script to delete the current printer and add it back each time the person logs on to a machine. Also what do i need to add to have it check and then delete printers if present from the old server? Finally i dont want any sort of window to show with the results of the script, or a window stating that it connected the printer. i want it to be seemless so a user logs on to there machine and appears as though it booted up normally with no windows popping up.

thanks

Ob1

.
__________________
_______________________________________________________________________
Inspirion 8600/centrino 1.6ghz/1024mb ram/80gb hard drive hitachi/intel pro wireless 2200bg/15.4sxga/Ati 128mb Radeon Mobility 9600/xp pro w/sp2

dimension 4700/P4 2.8ghz 800mhz FSB/1.5 ddr2 ram PC 3200/2X160gb sata maxtor 8mb cache RAID 1/19 in dell flat panel/windows server 2003 Small Business Server standard edition SP1 w/Exchange SP2
Ob1 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network startup problems AlanV Networking & Online Security 5 04-10-2006 08:49 AM
Network Card ( Onboard LAN Network (Gb or 10/100) ) MaesterMathias Build Your Own PC 2 12-07-2005 06:10 PM
Windows services list snooker Windows Legacy Support (XP and earlier) 0 06-27-2004 11:05 PM
Cant find printers on my network funknuts Networking & Online Security 5 05-24-2004 01:09 PM
Network, Virus, Norton or XP Problem? wackyjackie Networking & Online Security 16 03-28-2004 02:54 AM


All times are GMT -5. The time now is 12:54 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2