I am looking for some help on a quick script to remove a printer on about
100 pcs can anyone help me out.

Anything appreciated
Thanks

Re: remove a remote pcs specific printer by JHP

JHP
Wed Sep 14 13:23:08 CDT 2005

Your best bet is to run the script through a GPO (Group Policy Object) -
Logon Script:

Option Explicit
Dim strComputer, objWMIService, colItems, WshNetwork, objItem

strComputer ="."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Printer")
Set WshNetwork = WScript.CreateObject("WScript.Network")

On Error Resume Next

For Each objItem In colItems
If objItem.Name = "PRINTER NAME" Then
WshNetwork.RemovePrinterConnection objItem.DeviceID, True, True
End If
Next
Set WshNetwork = Nothing
Set colItems = Nothing
Set objWMIService = Nothing
WScript.Quit

"Benji" <gy1@radiant.net> wrote in message
news:11ie92ergbqte5e@corp.supernews.com...
>I am looking for some help on a quick script to remove a printer on about
>100 pcs can anyone help me out.
>
> Anything appreciated
> Thanks
>