bippyfeb2098
(Fresh Scripter)
2006-02-15 05:27 PM
Delete printers from specified server

Someone had mentioned that I could delete all printer connections that are hosted on a certain server...how would I do so?

Thanks, lads.


Les
(KiX Master)
2006-02-15 06:06 PM
Re: Delete printers from specified server

Instead of deleting indiscriminately as demonstrated in the DelPrinterConnections() UDF,
http://www.kixtart.org/UDF/UDF_lister.php?what=post&code=83059
EnumKey() individually and delete only those that match on the servername.


Benny69
(MM club member)
2006-02-15 07:29 PM
Re: Delete printers from specified server

if you are useing citrix, then I know that when i want to remove printers from a user all i have to do is delete "HKEY_USERS\" + @SID + "\Printers\Connections" this key and they all disapear, then i recreate the key and then i use "WScript.Network" to create the printers that i want them to have.

bippyfeb2098
(Fresh Scripter)
2006-02-17 03:53 PM
Re: Delete printers from specified server

Thank you, Les. I am not fully sure how I would do this though.

We want all print connections to a server named "DC3".