freezer Posted July 25, 2007 Share Posted July 25, 2007 (edited) I'm changing the spooler service to a new server. This means that all printers on the pc's need to be changed. Now all printers are logged on as: \\old_server\printer0101 this should be deleted and a new printer should be added: \\new_server\printer0101 Also the default printer must be set via a number in the pc name. <for example> pc name explaniation: 0102 (01 means it department 02 means pc number 2) 0201 (02 means management department 01 means pc numer 1) etc. for it department: the default printer is: printer0101 for management department: the default printer is: printer0201 Can anybody help? This concerns 40 printers and 150 workstations, and via a script this will be a lot easier. Does anybody have a similar script!??? Edited July 25, 2007 by freezer Link to comment Share on other sites More sharing options...
martin Posted July 25, 2007 Share Posted July 25, 2007 I'm changing the spooler service to a new server. This means that all printers on the pc's need to be changed.Now all printers are logged on as: \\old_server\printer0101 this should be deleted and a new printer should be added: \\new_server\printer0101Also the default printer must be set via a number in the pc name.<for example>pc name explaniation: 0102 (01 means it department 02 means pc number 2)0201 (02 means management department 01 means pc numer 1) etc.for it department: the default printer is: printer0101for management department: the default printer is: printer0201Can anybody help? This concerns 40 printers and 150 workstations, and via a script this will be a lot easier.Does anybody have a similar script!???The script here doesn't do what you want but it might give you some clues. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
lordofthestrings Posted July 26, 2007 Share Posted July 26, 2007 (edited) well I would suggest another thing, to give you a second opinion. PC management is best done through registry.. I simply search in my registry where I see the printserver. (in regedit look for \\printserver01) then I would write a script that simply changes those values (why delete when you can change) in that particular key on all computers.. (RegDelete, RegEnumKey, RegEnumVal, RegRead, RegWrite) Maybe some logging of on what computer (+ username) which printer gave an error.. (FileOpen, FileWriteLine, @UserName, @ComputerName, @error) log that into a textfile somewhere on the network and you're ready to test on a testgroup.. Edited July 26, 2007 by lordofthestrings Link to comment Share on other sites More sharing options...
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