#67992 - 2002-07-10 12:28 AM
Collecting information
|
JasLC
Fresh Scripter
Registered: 2002-05-29
Posts: 39
Loc: Fort Worth
|
Hey y'all...
Many of you already know how to do what I'm about to ask, so instead of this NOOB spending many hours trying to write this, I'm gonna pick your brains...
I have a mix of 95, 98, NT4, and W2K clients. Some are only logging into Active Directory, some are only logging into NDS, and some are logging into both. I want to find the computers that DO NOT have the Microsoft Client installed. For the computers that DO NOT have the Microsoft Client installed, I am going to run KIX32 from a Netware server. I have already tested this and it works. In order for me to take advantage of MACROs with the KIXRPC service, I will need to specify the Windows 2000 server to point to for the RPC service. Here's what I am thinking I want to do:
I want to verify (possibly with KEYEXIST) that HKLM\Enum\Network\VREDIR exists within the registry of these machines. If it exists, I then want to create a file on a server. (possibly \\server\share\"+@WKSTA+".txt) ...something like that. (remember, I will have to point to the RCP server somewhere in the script)
Then, I want to put information in that file like "ProductName", "Version", and "VersionNumber" from HKLM\Software\Microsoft\Windows\CurrentVersion. If I could, I would also like to put in the file the name of the user who logged in. (possibly from @USERID, but remember, these users are NOT NT domain users but logging into NDS. I don't know if USERID would pick up the local USERID from the workstation or not. If USERID doesn't work, I could always possibly find their username within the registry and export that into the file somehow.)
Many thanks in advance! Jason
|
|
Top
|
|
|
|
#67993 - 2002-07-10 01:25 AM
Re: Collecting information
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
Take a look at some of our scripts on our site. F.e. logon.kix creates a historical and dynamic list of your users. greetings.
|
|
Top
|
|
|
|
#67996 - 2002-07-10 04:21 PM
Re: Collecting information
|
JasLC
Fresh Scripter
Registered: 2002-05-29
Posts: 39
Loc: Fort Worth
|
Y'all should be actors on broadway! You over exagerate so well!
The logon.kix file was great and easy to read through. I took what I needed and implemented some code in a test environment. All is working well.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|