[THIN] Re: Scripting Printer Detection/Creation

  • From: "TheThin" <TheThin@xxxxxxxxxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Fri, 22 Nov 2002 13:01:49 -0500

So, I found the way to find the printers for a user as they login:
http://www.msdn.microsoft.com/library/default.asp?url=3D/library/en-us/sc=
r
ipt56/html/wsmthenumprinterconnections.asp  (this URL will probably have
a line-break in it, so you can try this one:
http://makeashorterlink.com/?F29251982 ).

Does anyone know of a way to do this for a user's ntuser.dat file,
though?

Bill

-----Original Message-----
From: TheThin=20
Posted At: Friday, November 22, 2002 12:21 PM
Posted To: TheThin
Conversation: Scripting Printer Detection/Creation
Subject: [THIN] Scripting Printer Detection/Creation



I'm working with a site that occasionally we will have to reset a user's
profile settings.  We are about to hit a bunch of users that are going
to have to have their printer definitions re-created for them.

I've found the kix information to add printers (addprinterconnection()),
but what I am wanting is a way (in Kix, VBScript, ADSI, or anything that
will run on NT4 TSE) to detect what printers are installed on a client.
I would prefer a method that can detect this from the ntuser.dat file in
the profile directory for a user that is currently logged off, but I can
also handle this only being part of a login script (detecting from the
current registry).

Does anyone know of any tools to do that?

Thanks,

Bill

Bill Denney / bdenney@xxxxxxxxxxxxxxxxxxxxx
Phone: 678-781-5261
Systems Analyst / Politis Consulting
3 Dunwoody Park / Suite 103 / Atlanta, GA 30338

***********************************************=20
This Weeks Sponsor: Wyse Technologies
Get a free whitepaper on how to secure
your corporate data from Wyse. Click Below.=20
http://thethin.net/wyse.cfm=20
***********************************************=20
For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm
*********************************************** 
This Weeks Sponsor: Wyse Technologies
Get a free whitepaper on how to secure
your corporate data from Wyse. Click Below. 
http://thethin.net/wyse.cfm 
*********************************************** 
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: