Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


printer script help please

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48838
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> printer script help please
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 printer script help please - 6/28/2007 12:10:59 AM   
  don

 

Posts: 5
Score: 0
Joined: 6/28/2007
Status: offline
Hi

i was wondering if anyone had a printer script available that can do the following:

export all printer settings (except the driver) from one server and then import all printer settings (except the driver) to another server

When i say all printer settings, i mean the port, shares, queues and printer configuration settings such as paper size etc etc excluding the printer driver

Is anyone able to help please?

i have never done any scripting and have not been able to find a script that will do this.

Microsofts printmig will migrate printers quite easily but it includes the printer drivers so it is of no use to me

thanks
Don

 
 
Post #: 1
 
 RE: printer script help please - 6/28/2007 6:18:11 AM   
  edavis6678

 

Posts: 122
Score: 0
Joined: 1/12/2006
Status: offline
Just use PrintMig and then delete the drivers...

(in reply to don)
 
 
Post #: 2
 
 RE: printer script help please - 6/28/2007 5:54:26 PM   
  don

 

Posts: 5
Score: 0
Joined: 6/28/2007
Status: offline
printmig will not do the job for me

in order to delete the driver you have to delete all of the printers using that driver

printmig brings across the driver so it will not do the job for me

i want to be able to export all printer settings ie. ports and queues and printer settings (except for the driver) and then import them back and apply the new driver.




(in reply to don)
 
 
Post #: 3
 
 RE: printer script help please - 6/29/2007 1:04:40 AM   
  ebgreen


Posts: 5250
Score: 31
Joined: 7/12/2005
Status: offline
All of that information is probably stored in WMI. Get started writing.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to don)
 
 
Post #: 4
 
 RE: printer script help please - 6/29/2007 1:19:35 AM   
  dm_4ever


Posts: 2723
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Maybe using the PrintUI dll?  Just a thought.

http://www.robvanderwoude.com/2kprintcontrol.html

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to don)
 
 
Post #: 5
 
 RE: printer script help please - 6/30/2007 9:57:55 PM   
  don

 

Posts: 5
Score: 0
Joined: 6/28/2007
Status: offline
the reason why i am asking is because i have never used vbscript or done anything like this and wanted to see if there was something i could use that was out there already

Do you know if there is something already written that i can use?

thanks
Don

(in reply to ebgreen)
 
 
Post #: 6
 
 RE: printer script help please - 6/30/2007 9:58:55 PM   
  don

 

Posts: 5
Score: 0
Joined: 6/28/2007
Status: offline
not sure if this will work as it has to be run on the server

thanks
Don

(in reply to dm_4ever)
 
 
Post #: 7
 
 RE: printer script help please - 7/1/2007 4:14:43 AM   
  edavis6678

 

Posts: 122
Score: 0
Joined: 1/12/2006
Status: offline
You can't install a printer without specifying a driver anyways.

I'd suggest the following.  (if you don't know VB script)

1.  Use PrintMig to migrate everything over.
2.  Use SETPRINTER.EXE  (MS utility) to change all of the printers to use, (lets say), HP LaserJet 4 driver---or do it MANUALLY.  (basically have all the printers use a different driver than what they have)
3.  Then go into the Print Server Properties and delete all the drivers that were brought over with PrintMig.
4.  Reinstall the drivers and re-specify the printers with their new drivers.  (either manually or via SETPRINTER.EXE)

< Message edited by edavis6678 -- 7/1/2007 4:20:38 AM >

(in reply to don)
 
 
Post #: 8
 
 RE: printer script help please - 7/2/2007 12:49:53 AM   
  don

 

Posts: 5
Score: 0
Joined: 6/28/2007
Status: offline
thank you for this information, things are looking brighter

however, i have looked at setprinter.exe and i am not sure i can use this with server 2003

will need to play with this a bit more

i dont have much experience with programming or using these tools but will give it a try

Have you used this tool?  If so, exactly how do i go about changing the driver using setprinter.exe?

To do i tmanually will take forever as there are quite a number of queues - about 600

thanks
Don

(in reply to edavis6678)
 
 
Post #: 9
 
 RE: printer script help please - 7/2/2007 3:24:24 AM   
  edavis6678

 

Posts: 122
Score: 0
Joined: 1/12/2006
Status: offline
setprinter works with 2003 R2 x64 clusters so should be fine with regular 2003.  just read the manual for setprinter.  I've personally never used it to swap out a driver, but I know it can do it.

(in reply to don)
 
 
Post #: 10
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> printer script help please Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts