First of all I want to limit one users access on a stand alone PC. I set the
login time window with the NET USER command which indeed limits login.
However, it doesn't force logout after exceeding login time frame.
Now I want to schedule a script that warns the user that a logoff will
occur, and thereafter loggs off the current user.
I can create messages in VBScript but my questions are these:
How can I identify the current logged on user and compare this with a
constant?
How can I execute the shutdown program since Shell doesn't work in
scripting?
Many thanks.