Win 7 Batch File no domain

Posted on 2012-08-15
Last Modified: 2012-08-30
We need to run a batch file at logon for a workstation that is not in a domain.
We will be using the IdleLogOff.exe from

Ideally we'd have the user logon and then run the program which logs off the user after x mintues of idle time.

I don't think task scheduler is an option but it might be.

Question by:kman48185
    LVL 4

    Assisted Solution

    You should be able to just place a shortcut to the application in:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
    LVL 12

    Assisted Solution

    LVL 52

    Accepted Solution


    Oh yes, task scheduler is an option. It knows the trigger "on idle" - that's all we need. Setup a task like this:
    user: system, password:blank [no, this is no security risk but by design]. Trigger: on idle.  Action: rwinsta console
    That's all.

    Please also read the help on what "on idle" means to windows:
    The Task Scheduler service will check if the computer is in an idle state every 15 minutes. A computer is considered to be in an idle state when a screen saver is running. If a screen saver is not running, then the computer is considered to be in an idle state if there is 0% CPU usage and 0% disk input or output for 90% of the past fifteen minutes and if there is no keyboard or mouse input during this period of time. Once the Task Scheduler service detects that the computer is in an idle state, the service only waits for user input to mark the end of the idle state.
    Further "idle" settings can be made on the tab "conditions".

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Vista's Magnifier was a tool that could be turned on in the Ease of Access Center so that things on the screen could be seen more easily.  The Vista tool showed you a magnified view in a window of what you were pointing at with your mouse.  But the …
    OfficeMate Freezes on login or does not load after login credentials are input.
    In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
    This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.

    755 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

    20 Experts available now in Live!

    Get 1:1 Help Now