Sign in to follow this  
Followers 0
zvvyt

Shutdown after some decided idle time

4 posts in this topic

I'm thinking of a script that when my computer have been inactive for some time it will shutdown itself, but can't find a command that checks the time the computer have been idle.

Any idea?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

search on the forum, there're many similar topic...

i've thought about it before, check if the mouse has't been move and the keys hasn't been pressed

a useful link : http://www.autoitscript.com/forum/index.ph...=idle&st=15

Edited by d4rk

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

zvvyt

See here

Share this post


Link to post
Share on other sites

if you are a network administrator, i'd highly recommend against this unless you have better reasons but one of the problems i've had as a network administrator at EVERY network/enterprise I've worked with is that with automating updates, you typically do it on off-peak hours in which case, you need the machines to be on at all times.

but if you really want to do this, do it through the Task Scheduler using some variant of:

AT 03:00 /EVERY:Saturday CMD "SHUTDOWN.EXE -r -f -t 01"

..as your command line. this would reboot the machine it was running on every saturday at 0300.

when i've coupled this with an actual script (i used KiX at the time, but you can certainly use AutoIT), I used scripting to query a special security group i set up in AD for user accounts that should be excluded from this setting.


My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0