Solved

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

Posted on 2009-04-03
7
178 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
  • 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
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…

785 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