#111133 - 2004-01-02 04:09 AM
Need a start
|
olmeca3332003
Fresh Scripter
Registered: 2003-10-26
Posts: 35
|
I need to create a file with the logon script that will contain the computer name as the file name and it should append specific information of Avery user that logs on to that computer. I created my first scripWith kixtart, still learning the product. Any idea is welcome, thanks in advance.
|
|
Top
|
|
|
|
#111135 - 2004-01-02 07:11 AM
Re: Need a start
|
olmeca3332003
Fresh Scripter
Registered: 2003-10-26
Posts: 35
|
LES, I appreciate you fast response, here is part of the code. Now I will be working on converting The files to CSV format or adjust the script to output the desire format, any suggestion?
Break on $path = "\\Server\share\" $rc=RedirectOutput($path + @WKSTA + ".log") ? "CompName: " @WKSTA + " User: " @USERID + " Date: " @DATE + " Time: " @TIME + " Location: " $segment + " MAC: " @ADDRESS + " OS: " @PRODUCTTYPE + " SP: " @CSD $rc=RedirectOutput('@WKSTA.log',0)
|
|
Top
|
|
|
|
#111136 - 2004-01-02 08:35 AM
Re: Need a start
|
pvds
Hey THIS is FUN
   
Registered: 2001-04-14
Posts: 201
|
something like this? Code:
Break on $path = "\\109837\" $rc=RedirectOutput($path + @WKSTA + ".log") ? "CompName: " @WKSTA + ", User: " @USERID + ", Date: " @DATE + ", Time: " @TIME + ", Location: " $segment + ", MAC: " @ADDRESS + ", OS: " @PRODUCTTYPE + ", SP: " @CSD $rc=RedirectOutput('@WKSTA.log',0)
Peter
|
|
Top
|
|
|
|
#111139 - 2004-01-02 11:48 PM
Re: Need a start
|
olmeca3332003
Fresh Scripter
Registered: 2003-10-26
Posts: 35
|
Thanks All, job well done. Below is the extracted data. I need to put this data in an access table, the words after the asterisk are the headings for the fields in access any suggestions? This is truly a learning experience thanks again.
Data taken from log files: *CompName: 130BROOK-004 *User: Administrator *Date: 2004/01/02 *Time: 17:08:34 *Location: Texas *MAC: 00104BE2AEFD *OS: Windows 2000 Professional *SP: Service Pack 4
|
|
Top
|
|
|
|
#111141 - 2004-01-03 02:46 AM
Re: Need a start
|
olmeca3332003
Fresh Scripter
Registered: 2003-10-26
Posts: 35
|
Point well taken, but it will be nice if someone wrote the codes. So happing that I’m one who learns best by examples. You may have notice that the program's companion text has very little samples.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 874 anonymous users online.
|
|
|