 | "Forcing" a restart every week |  |
Posted: Thu Feb 11, 2010 9:19 am |
|
|
| rfn |
|
|
| |
| Joined: 17 Apr 2008 |
| Posts: 52 |
|
|
|
|
 |
 |
 |
|
Hi,
Is there any way that I can use LANrev to force users to restart regularly, say once every week?
Some of our users like to keep their computers on all the time so they avoid having to wait for it boot in the morning. This is troublesome both because it consumes power but also because they don't receive new packages and OS patches that I push with LANrev.
Can I use LANrev to push a script that displays a dialog when a computer has been turned on too long? This would be both on Windows and Mac. |
|
_________________ Regards,
René Frej Nielsen |
|
|
|
 | |  |
Posted: Fri Feb 12, 2010 1:46 am |
|
|
| bgt |
| LANrev Team |

 |
| |
| Joined: 26 Jul 2006 |
| Posts: 727 |
| Location: USA |
|
|
|
 |
 |
 |
|
Yes. It's actually really easy. Assign a power management schedule to reboot the machine or other power management schedules with the Power Management Settings command to do this. So here's an example.
Mon-Fri 9am-6pm, put machines to sleep after 20 minutes.
Mon-Fri 6pm-9am, put machines to sleep after 5 minutes
Weekends all day, put machines to sleep after only 2 minutes
Fri at 7pm, shut down machine but only if user not logged in
Be sure to save this as a power management profile so you can reassign to other computers in the future. These will take effect on target machines even if they're not on the network and users cannot disable since it's enforced by the agent and there's no end user UI. Users will always get a 2 minute warning from the agent with an option to cancel if they are still working.
Bao |
|
|
|
|
 | |  |
Posted: Sun Feb 14, 2010 1:28 pm |
|
|
| rfn |
|
|
| |
| Joined: 17 Apr 2008 |
| Posts: 52 |
|
|
|
|
 |
 |
 |
|
This wouldn't be exactly what I want, because I'm not sure that I want to force a certain power manamgent schedule on our users. Maybe at some time, but not right now and it would have to be an executive decision.
I "just" wanted some kind of a "counter" that checked if the computer had been rebooted in a week, and if not then display a warning to the user. If the user didn't react in a reasonable time, then the computer should just be rebooted. |
|
_________________ Regards,
René Frej Nielsen |
|
|
|
 | |  |
Posted: Tue Feb 23, 2010 9:47 pm |
|
|
| bgt |
| LANrev Team |

 |
| |
| Joined: 26 Jul 2006 |
| Posts: 727 |
| Location: USA |
|
|
|
 |
 |
 |
|
There's not a really easy way to do this in the existing product with the logic you want. The closest thing is to have a single schedule to have the system restart once a week on a Friday night.
The only way to add logic to this to keep track of the time is to schedule an at or cron job that checks the uptime of a client machine and if it's longer than a week then have it reboot.
Bao |
|
|
|
|
Posted: Tue Feb 23, 2010 9:55 pm |
|
|
| rfn |
|
|
| |
| Joined: 17 Apr 2008 |
| Posts: 52 |
|
|
|
|
 |
 |
 |
|
| I guess that you're right... Until I find someone to write that script which could check the uptime once every day, then I might just force a restart on the users... |
|
_________________ Regards,
René Frej Nielsen |
|
|
|
|
|