Search Tools Links Login

SystemIdleCheck: Command Line Usage


SystemIdleCheck is very straightforward to use. The current version switches are show below.

All switches are case sensitive, but the value of the switch is not. All switches have default values, and can appear in any order on the command line.

Switches

Switch Name Description
T TimeOut Sets the number of seconds the system should be idle for. Default is 300 seconds, or five minutes.
I IdleWarningTime Defines when the warning prompt will appear, in seconds. For example, if you set it to 360, the warning will appear 3 minutes prior to log off. Defaults to 60 seconds.
L idLeAction Determines the action to be carried out upon timer expiration. Valid values are LogOff, Lock, or Nothing. The default action is LogOff.

Examples

Command Line Explanation
sic T:600 I:120 L:lock Locks the current user session after 10 minutes of inactivity, with a warning at 2 minutes.
sic T:600 I:120 L:logout Logs out the current user session after 10 minutes of inactivity, with a warning at 2 minutes.
sic T:600 I:120 L:reboot Restarts the workstation after 10 minutes of inactivity, with a warning at 2 minutes.
sic T:600 I:120 L:shutdown Shuts down the workstation after 10 minutes of inactivity, with a warning at 2 minutes.
sic T:600 I:120 L:nothing Shows a warning after 8 minutes of idle, exits with no action. Handy for testing.
sic Runs with defaults, Logs off the current user after five minutes, with a warning at one minute prior to logoff.

About this post

Posted: 2019-07-22
By: dwirch
Viewed: 3,555 times

Categories

General

Free Stuff

Blog

SystemIdleCheck

SysAdmin Tools

Attachments

No attachments for this post


Loading Comments ...

Comments

AnonymousCoward posted this comment on 2019-10-04:

BEST.THING.EVER!!! Thank you, thank you, thank you!!!!

dwirch posted this comment on 2019-10-04:

Happy to know that this works for you. Let me know if you need anything else!

AnonymousCoward posted this comment on 2019-10-30:

Sorry, but I am new at this.  How do I get to the command line of sic.exe?

Thank you!

dwirch posted this comment on 2019-10-30:

SystemIdleCheck (SIC) runs at a Windows cmd prompt, if you are attempting to run it interactively.

The program must be in your system path. If it is not in your path, Windows won't find it, so you'll need to run it from the same directory the executable lives in.

AnonymousCoward posted this comment on 2019-12-26:

This is great, however is there any possibility to force lock after say 5 min and then full logout after an hour?  Also i dont need the warning, i have been able to mostly avoid it by setting it to -1, but is there an option to disable the warning alltogether?

Thank you for your work on this, this is the best solution i have found so far

AnonymousCoward posted this comment on 2021-05-26:

Doesn't appear to operate corectly.  Used L:nothing and it logged me off anyway.  Tested using T:120 I:60 and it never popped up.

dwirch posted this comment on 2021-05-26:

@Anonymous Coward:
 

Which version of SIC are you using?  Can you give me a little background on the machine you are testing with, specifically which OS?

Also, when you fire the program, are you seeing SIC.EXE in Task Manager?

Thanks in advance for answering these questions; they'll help me troubleshoot what the problem could be.

AnonymousCoward posted this comment on 2023-02-18:

Hi! I like this program very much!

Is there a way to stop the waring from showing up?  I tried setting the command line T:600 I:0 L:Logout but I still get the waring.

Thanks!

 

dwirch posted this comment on 2023-02-18:

set the warning time to the same as teh action time, and it should work as you want.

You must be logged in to make a comment.