captainjack913 Posted November 24, 2007 Posted November 24, 2007 I need resources on how to create VB scripts for Windows Server 2003. Specifically I need information on how to manage print servers. Technet has examples on how to create TCP/IP printer ports but I need to know how to change the IP address associated with that port.
gunsmokingman Posted November 25, 2007 Posted November 25, 2007 I need resources on how to create VB scripts for Windows Server 2003. Specifically I need information on how to manage print servers. Technet has examples on how to create TCP/IP printer ports but I need to know how to change the IP address associated with that port.Here is a link to a article on How Can I Set the Default Printer Based on the IP Address of the ComputerThis should give you a good start to what you want to do.Hey, Scripting Guy!Here is a page with more refrences on scripting for printers.Hey, Scripting Guy Printer Script
captainjack913 Posted November 30, 2007 Author Posted November 30, 2007 gunsmokingman, honestly, that's not what I'm talking about. I do not have any clients that map printers. Everything is done on the server side since the vast majority of my users use Terminal Services with only one application allocated to them. Any and all printing uses printers mapped locally on each terminal server. I need a way or at least the info I need to construct a script to change the IP address of printer ports ie change the IP address of a port named IP_10.X.X.1 from 10.X.X.1 to 10.X.X.2. The Windows 2000 Scripting Guide was a great resource and I have yet to find the equivalent for Windows 2003.
cluberti Posted December 1, 2007 Posted December 1, 2007 The Windows 2000 scripting guide should be fine, there never will be a book for 2003.Since printer ports are technically just registry keys, you could write a script that stopped the print spooler service, read in the reg keys for the current values and wrote back the port values you wanted, then started the print spooler service.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now