Page 1 of 1 1
Topic Options
#157270 - 2006-02-15 05:27 PM Delete printers from specified server
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Someone had mentioned that I could delete all printer connections that are hosted on a certain server...how would I do so?

Thanks, lads.

Top
#157271 - 2006-02-15 06:06 PM Re: Delete printers from specified server
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157272 - 2006-02-15 07:29 PM Re: Delete printers from specified server
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
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.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#157273 - 2006-02-17 03:53 PM Re: Delete printers from specified server
bippyfeb2098 Offline
Fresh Scripter

Registered: 2005-09-12
Posts: 39
Thank you, Les. I am not fully sure how I would do this though.

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

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.051 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org