Page 1 of 1 1
Topic Options
#37715 - 2003-03-11 05:28 PM Logging to file with @userid
Ni8Mare Offline
Lurker

Registered: 2003-03-11
Posts: 3
{Moderator (Sealeopard): Moved thread from 'Scripts' to 'Starters' forum]

I'm currently testing a logon script which maps certain drives for different groups, and would like to be able to create a log file as to identify what users have logged on successfully or failed. I've seen many options of apending to log files, but nothing that create an individual file for each logged on user.

Please help! [Confused]

[ 11. March 2003, 17:51: Message edited by: sealeopard ]

Top
#37716 - 2003-03-11 05:47 PM Re: Logging to file with @userid
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Just create a filename with the userid in it.
_________________________
There are two types of vessels, submarines and targets.

Top
#37717 - 2003-03-11 05:49 PM Re: Logging to file with @userid
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
This sound like a 'Starters' type question, not something for the 'Scripts' forum.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#37718 - 2003-03-11 06:19 PM Re: Logging to file with @userid
Ni8Mare Offline
Lurker

Registered: 2003-03-11
Posts: 3
Thanks folks. [Big Grin] Any chance of 1 final question? How can I achieve a redirection of Mapped Drives by the logged on User, again into a *.txt file.
Top
#37719 - 2003-03-11 07:06 PM Re: Logging to file with @userid
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
shell '%comspec% /c net use > c:\drives.txt'
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#37720 - 2003-03-14 12:35 AM Re: Logging to file with @userid
Ni8Mare Offline
Lurker

Registered: 2003-03-11
Posts: 3
Radimus - Thanks for your input, now everythings working a treat !!! [Big Grin]
Top
#37721 - 2003-03-20 03:13 AM Re: Logging to file with @userid
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Take also a look at another way of logging mappings.
Take a look at our script mappings.kix which you can find on
our site. It creates only dynamic file, which shows you for each
user which drive-letters were mapped.

We prefer to use one file for specific information instead of
different files for each user.
Also we suggest to use a format, which can use for other purposals.
greetings.

btw: symbol  - on our pages has been linked to related http://kixtart.org topic.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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
0 registered and 988 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.052 seconds in which 0.021 seconds were spent on a total of 11 queries. Zlib compression enabled.

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