Knowledgebase
Windows
Remove Printers Using Print Server Name | Remove Printers Using Print Server Name |
|
|
|
| Written by Cheyenne Harden | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Two things keep me employed 1. Stupid People and 2. Printers! Just after Christmas we had a server go down (This was our print server). It cause all kinds of trouble reinstalling and such... but the biggest pain were the printers (Their were so many of them). With all of the Terminal servers using printer scripts and having users who cannot change their settings cause printers to not be removed when the printserver is gone. To fix this issue I created this script it will remove all printers from a specified "print server" (e.g., \\PSVR\colorlaser01). This script can be run as a login script or added to an existing printer script. ----------COPY EVERYTHING BELOW THIS LINE---------- 'This script will remove printer for the specified print server On Error Resume Next Dim arrPrinterName() strComputer = "." Set objWMIService = GetObject("winmgmts:" _ Set colInstalledPrinters = objWMIService.ExecQuery _ For Each objPrinter in colInstalledPrinters
PLEASE MAKE SURE NO WORD WRAPPING IS HAPPENING IN YOUR SCRIPT!!! To make this script work you will need the items below!
Powered by !JoomlaComment 3.12 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < Prev | Next > |
|---|
















