Solved

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

Posted on 2009-04-03
7
176 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adprep 12 61
Running VB6 Apps on Windows 7 4 137
change prefix in multiple files in one folder 11 69
Backup Windows XP system 9 120
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now