MS-Dos-Skript for logging user logon/off - what data is available

  • Thread starter Thread starter arno
  • Start date Start date
A

arno

Hello,

I have scripts that are run on logon and logoff for my information, the data
is collected in a txt-file. Now, I would like to know if there is more
information about the user/pc etc. available for batch-files. What I have so
far is (one command):

echo
Logon;%date%;%time%;%username%;%clientname%;%computername%;%sessionname%;
What other usefull parameters would be available? Here's just what I found
with the "set" command.

Thank you

arno
 
Well...what additional information are you looking for
about the client? The set command contains a majority of
the information that most people want.

-M
 
Hello Matthew,
The set command contains a majority of
the information that most people want.

Well, ip-address would be nice, maybe also RDP-Client version. What I do not
know is eg. what categorey eg. %time% is coming from and what other
categories besides shown with "set" are available.

Best regards

arno
 
Getting the ip-address and rdp-client version through the
command line doesn't work in Windows 2000. You could
write a quick program that queries an api that would give
you this information.

The %time% and %date% are both variables that come from
the command interpreter and are built into the system. If
you want to see other variables that are available through
the set command, just type 'set' at the command prompt.
As far as getting other information, you might need to
query the TS APIs directly to get this information.

-M
 
Hello Matthew,
You could
write a quick program that queries an api

However, this "program" cannot be written as a batchfile? I do not know any
of the scripting languages.

Best regards

arno
 
You could try using a KIX script.

Simon.


arno said:
Hello Matthew,


However, this "program" cannot be written as a batchfile? I do not know any
of the scripting languages.

Best regards

arno
 
Back
Top