Giter VIP home page Giter VIP logo

idleshutdown's Introduction

This was created as a response to a Super User question.


The compiled version requires .NET 3.5 to run (perhaps 2.0 would work).


Usage is quite simple, simply execute the program, preferably in a scheduled task. It will wait the specified number of minutes before shutdown, with a window visible with options to abort/postpone. If no time is specified, it will wait 5 minutes.

IdleShutdown.exe <minutes>

The notification icon Mazenl77 is sourced from http://www.iconspedia.com/icon/shutdown-1626.html and used under the CC-BY licence

idleshutdown's People

Contributors

bobvul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gthoma17 zaklux

idleshutdown's Issues

0x80070422 error

I got 0x80070422 error on startup. Probably because I run IdleShutdown v2.0.0 Alpha on Windows 10 Home and the Windows Update service is disabled.

Scheduled Task Shutdown

Hi,

I've been trying to set this up as a scheduled task to shutdown all PC's on our network at a certain time. There are 2 scenarios in the Task Scheduler:

  1. "Run whether the user is logged on or not" - PC's at the login screen shutdown without warning, which is perfectly fine but PC's which are logged in and being used also shutdown without warning.
  2. "Run only when user is logged on" - Users who are logged in have the option to postpone or abort the shutdown, but PC's at the login screen do not shutdown.

I don't know why the dialog box does not pop up when I set it to scenario 1. Is this a Microsoft issue or something which can be fixed?

The persistent version fails to close the NamedPipeServerStream in many cases.

With the implementation of persistent as in #1, a NamedPipeServerStream was introduced. This runs on a background thread. The background thread is not cleanly exited - the finally is never called, neither directly nor using statement.

This is largely a non-issue in normal operation: Windows should automatically dispose of the handle when the process ends, and the server program should not be exited until shutdown anyway.

Still would be nice to fix. Perhaps a Thread.Interrupt will do to kick it out of the WaitForConnection()?

Race condition with mutexes and without a persistent instance.

Where two processes are started in quick succession without a persistent instance available, a race condition is possible where one (A) holds the mutex (very briefly) while the other (B) attempts to take it. B will proceed to send a message even though no persistent instance exists.

This race condition is exceptionally rare. And I'm not entirely sure how to fix it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.