IATA-techops
asked on
Script to remove certain printers
Dear Experts,
I have tried using scripts so that a user can run to automatically remove certain printers.
Our current installed printers are IP printers and they all start with the same 3 letter code but the 4th character changes.
Is there a script that can be executed in order to remove a printer or printers?
Thank you in advance
I have tried using scripts so that a user can run to automatically remove certain printers.
Our current installed printers are IP printers and they all start with the same 3 letter code but the 4th character changes.
Is there a script that can be executed in order to remove a printer or printers?
Thank you in advance
ASKER
Still unable to run it
From this code: I only want to remove printers from a local machine.
I have removed the Add printer part and added my server name, however receive a character error.
My server name is mia-fs2 and the printer is mia-61, could you tell me where i should enter this info correctly so the script can execute?
set objNetwork = CreateObject(“WScript.Netw ork”)
objNetwork.RemovePrinterCo nnection “\\Your_print_server\print er_name_be ing_remove d”
objNetwork.AddWindowsPrint erConnecti on “\\Your_print_server\print er_name_be ing_added”
From this code: I only want to remove printers from a local machine.
I have removed the Add printer part and added my server name, however receive a character error.
My server name is mia-fs2 and the printer is mia-61, could you tell me where i should enter this info correctly so the script can execute?
set objNetwork = CreateObject(“WScript.Netw
objNetwork.RemovePrinterCo
objNetwork.AddWindowsPrint
ASKER
?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
n/a
https://www.interworks.com/blogs/smatlock/2014/03/31/using-logon-scripts-add-and-remove-network-printers
Just because this site calls it a logon script does not mean it can't be used in general it certainly can be run manually etc...