Solved

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

Posted on 2009-04-03
7
180 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:missymadi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 15

Expert Comment

by:zelron22
ID: 24061848
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?
0
 
LVL 17

Expert Comment

by:Jared Luker
ID: 24061867
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.
0
 

Author Comment

by:missymadi
ID: 24061968
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?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Expert Comment

by:zelron22
ID: 24062205
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.
0
 

Author Comment

by:missymadi
ID: 24062343
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?
0
 
LVL 15

Expert Comment

by:zelron22
ID: 24062427
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.
0
 
LVL 15

Accepted Solution

by:
zelron22 earned 250 total points
ID: 24062438
-s is for shutdown, you could replace it with -r for reboot.  the -o for logoff didn't appear to work with the -c to allow the user to cancel.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Blocking of USB Port 18 124
Clone HDD in RAID1 10 157
Security cameras working but files saving are corrupt 4 165
Decrypting the Zepto Virus 21 674
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question