Re: User login

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



IMHO, far too few people probe a little deeper when looking
for batch file answers here. Most are happy to use the code
without really understanding what it does.

When you type set /? then you will see that the command
has the ability to perform substring functions. The %time%
variable looks like so: 16:17:38.67, which is fairly useless
for the OP's purpose, so how about using only the 5 left-most
characters? This command will do it:
echo %time:~0,5%


"JohnB" <jbrigan@xxxxxxxxx> wrote in message
news:uhtaK3EhIHA.1188@xxxxxxxxxxxxxxxxxxxxxxx
Ok, it's the BrainSponge again....

In the line where you're sending the screen output to a file, what does
this
part mean: ":~0,5% "



"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:uY60VJ8gIHA.536@xxxxxxxxxxxxxxxxxxxxxxx

"qq" <qq@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2F420F91-1C24-4D94-9AE2-2FF81D4C501A@xxxxxxxxxxxxxxxx
Hi All,

I want to run a login script file for certain users. How can I know
these
users has login to domain? How can I track these users' login status?

Thanks in advance,

You could get these users to execute a modified logon script
that contains this line of code:

echo %date% %time:~0,5% %UserName% >>
\\YourServer\SomeShare\Logs\logon.txt





.



Relevant Pages

  • Re: User login
    ... When you type set /? ... This command will do it: ... I want to run a login script file for certain users. ...
    (microsoft.public.windows.server.general)
  • Re: Login session hasnt been abandoned after TIMEOUT time
    ... The login command is used at the beginning of each terminal ... session to identify oneself to the system. ... trying to kick off idle users. ...
    (comp.unix.solaris)
  • Re: Failsafe mode
    ... > and paste or failing that copy the message down character for ... >> If I exit out and log back in as my alternate user ... user command line prompt in the upper left corner and a black blank screen. ... If I ctl alt F1 I get the system login prompt. ...
    (alt.os.linux.suse)
  • Re: security
    ... a login and config apache to read the dir in his home dir. ... command or sequence of commands. ... To unsubscribe or change subscription options: ...
    (Fedora)
  • [HPADM] SUMMARY "Users not active"
    ... Sysadm guy setup to remove old login file and keep only the current dated ... you'll have to modify the script to use alternate wtmp files. ... Now if you run the logins command you can get more info... ...
    (HP-UX-Admin)