Marketing_Insists
asked on
managing printers via commandline?
I have a hundred workstations with various printer setup schemes. Most are setup as having local printers which are forwarded to either the printers IP address or \\server\printer-share.
I need to change the target printer IP addresses and share names for each workstation.
I want to avoid having to go to each workstation , manually logging on , going to control panel > printers, etc and making the change manually.
I can get a remote shell on any PC so I'm looking for commanline utilites so I might script this.
Con2prt isn't a option because the workstations are set up to print to local printers with the ports forwarded to either ip address or \\server\printer (It's a network printer, but the workstation treats it like it's local - no little pipe underneath the printer in "control > printers")
I'm been playing around with the command:
rundll32 printui.dll,PrintUIEntry /?
whcih shows hope, but I'm having trouble with how I can get a list of remote printer properties without knowing what printers the user is already hooked up to.
any ideas?
I need to change the target printer IP addresses and share names for each workstation.
I want to avoid having to go to each workstation , manually logging on , going to control panel > printers, etc and making the change manually.
I can get a remote shell on any PC so I'm looking for commanline utilites so I might script this.
Con2prt isn't a option because the workstations are set up to print to local printers with the ports forwarded to either ip address or \\server\printer (It's a network printer, but the workstation treats it like it's local - no little pipe underneath the printer in "control > printers")
I'm been playing around with the command:
rundll32 printui.dll,PrintUIEntry /?
whcih shows hope, but I'm having trouble with how I can get a list of remote printer properties without knowing what printers the user is already hooked up to.
any ideas?
You should probably use wmi and a vbscript to obtain and change the printer properties under each workstation. You could also set the script to automate it so you just run it and let it finish. When it is done, your network printers will then be all set to the new settings you are attempting. I don't have time to write you this script, but you should look into it.
ASKER
Ah yes, I've been putting off picking up WMI for too long.
Assuming I know VBscript, where would be a good refference to pick this up? (books or links)
Assuming I know VBscript, where would be a good refference to pick this up? (books or links)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.