Link to home
Start Free TrialLog in
Avatar of missymadi
missymadi

asked on

XP and set a users' time before they are logged off

Hi Experts,

     I looked around on this site but didn't see anything that would help me out with this issue. We have the setting in XP found in Start>Run>secpol.msc  - Security Options, Network Security, Force Logoff when logon hours expire

The local user is forced to logoff TIMEQ_FOREVER (infinite) seconds after their logon times expires. How can I set a users' time before they are logged off? Is this GPO or Registry? I ran net accounts from the command prompt and got the settings for the lockout. Is this where I would set the time?

Thanks, MissyMadi
Avatar of zelron22
zelron22

What do you mean, "How can I set a user's time before they are logged off?.  What time are you trying to set?  

Can you explain what the end result is that you're looking for?
If I understand your question correctly, you need to look in their AD account.  Find their account in active directory users and computers and double click it.  Go to the Account tab and click on the Logon Hours button.  That is what sets when they are allowed to be on the network.
Avatar of missymadi

ASKER

Our computer network configuration does not include AD. (I wish it did, it would be easier for the issues we need to address)

Here is what I'm looking for:
Before the user is logged off in an XP box, can there be a warning with an option to abort log off initiated by the following setting :
Start>Run>secpol.msc  - Security Options, Network Security, Force Logoff when logon hours expired?
Nope.
You either force log off, or you let them stay on.  If you give them a warning and allow them to abort, you're not forcing them off.

You COULD set up a scheduled task which runs a batch file or script at a given time with the shutdown command and allow them to abort that.
zelron22,

      I found some info on psShutdown v2.52. Could you give me an example (syntax) of a warning to a user who is about to be shutdown?
psshutdown -s -f -c -t 300 -m "You will be logged off in5 minutes."  \\%computername%

Of course, you'll have to specify the path for psshutdown and have it installed somewhere accessible from the PC.
ASKER CERTIFIED SOLUTION
Avatar of zelron22
zelron22

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial