Link to home
Start Free TrialLog in
Avatar of tbrewer48
tbrewer48Flag for United States of America

asked on

VBS PrinterRemoval

What command line is required for the attached “PrinterRemoval” VBS to remove printers for all users on a Laptop or PC?  Thank You
PrinterRemoval.txt
ASKER CERTIFIED SOLUTION
Avatar of Martin Anderson
Martin Anderson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
niabingi:
Won't that only delete the priners for hte logged in user ?
if the previous script does not remove all the printers for all users, this should work.

I have used this in a batch file, add a seperate entry for each printer installed

Reg Delete "hkcu\Printers\connections\,,LAGSPRN01\LAGPIS100" /f
Reg Delete "hkcu\Printers\connections\,,LAGSPRN01\LAGPISxx" /f
Reg Delete "hkcu\Printers\connections\,,LAGSPRN01\LAGPISxxx" /f
Avatar of tbrewer48

ASKER

The VBS. removed \\LAGSPRN01\LAGPIS100 only for one user
The BAT. didn't remove \\LAGSPRN01\LAGPIS100 from any user.
Any advice would be greatly appreciated?
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".