Sponsored Links

Login Form






Lost Password?

Syndicate

Home
Remove a Printer using the Printers Name PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Cheyenne Harden   
When a printer dies or is replaced and a new one installed you need a way to remove the old printer from users machines. But you don't want to do this by hand.
This script can remove a mapped printer and can be added to a logon script or run via group policy.

----------COPY EVERYTHING BELOW THIS LINE for the Script----------
'This script removes a printer from your local list of printers
'Created by Chey Harden on 10.9.07

On Error Resume Next

Dim objNetwork, objPrinter
objPrinter = "\\PRINT SERVER NAME HERE\PRINTER NAME HERE"

Set objNetwork = CreateObject("WScript.Network")
objNetwork.RemovePrinterConnection objPrinter
Set objNetwork = Nothing
WScript.Quit


----------COPY EVERYTHING ABOVE THIS LINE for the Script----------

 

 

PLEASE MAKE SURE NO WORD WRAPPING IS HAPPENING IN YOUR SCRIPT!!!

1. Add this to a logon script or to a new GPO.


This information is provided "AS IS" with no warranties expressed or implied.

Comments
Add NewSearch
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
 
Security Image
Please input the anti-spam code that you can read in the image.

Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved.

 
Tag it:
Delicious
Furl it!
Spurl
digg
YahooMyWeb
< Prev   Next >
 

Google Search

Google