tbrewer48
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
PrinterRemoval.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 \,,LAGSPRN 01\LAGPIS1 00" /f
Reg Delete "hkcu\Printers\connections \,,LAGSPRN 01\LAGPISx x" /f
Reg Delete "hkcu\Printers\connections \,,LAGSPRN 01\LAGPISx xx" /f
I have used this in a batch file, add a seperate entry for each printer installed
Reg Delete "hkcu\Printers\connections
Reg Delete "hkcu\Printers\connections
Reg Delete "hkcu\Printers\connections
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?
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".
The question has either no comments or not enough useful information to be called an "answer".
Won't that only delete the priners for hte logged in user ?