Sign in to follow this  
Followers 0
freezer

Printer login script needed

3 posts in this topic

#1 ·  Posted (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 by freezer

Share this post


Link to post
Share on other sites



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!???

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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by lordofthestrings

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0