/InternetOutageMonitor

A small Windows Service that logs when your computer has an internet connection.

Primary LanguageC#

InternetOutageMonitor

A small Windows Service that logs when your computer has an internet connection.

Installing

To install this service, you must have Visual Studio 2017 Community or later installed. Please note that the service starts before the computer connects to a network, and will always report being initially disconnected from the internet.

Building

  1. Download or clone the repository locally into the Projects folder of Visual Studio 2017.
  2. Open InternetOutageMonitor.sln in Visual Studio 2017.
  3. Right click on the InternetOutageMonitor project in the Solution Explorer.
  4. In the context menu, select Build.

Adding InstallUtil to the Path

  1. Ensure that the folder containing InstallUtil.exe is in the system path.
  2. If it is not in the path, go to Control Panel>System and Security>System and click on Advanced System Settings.
  3. Switch tabs to Advanced on the System Properties window that has opened, and press Environment Variables...
  4. In the System Variables pane, highlight Path, then press Edit.
  5. Press New and add C:\Windows\Microsoft.NET\Framework\v4.0.30319 as the new entry.

Installing InternetOutageMonitor Manually

  1. Open the command prompt as an Administrator.
  2. Navigate to the InternetOutageMonitor project folder.
  3. Navigate to InternetOutageMonitor\InternetOutageMonitor\bin\Debug.
  4. Enter InstallUtil.exe .\InternetOutageMonitor.exe.
  5. If the installation is successful, restart your computer to start the service.

Finding Connection Information

Internet connection status is logged in C:\Windows\SysWOW64\OutageLog.txt.

Uninstalling

  1. Open the command prompt as an Administrator.
  2. Navigate to the location of InternetOutageMonitor.exe (see Installing InternetOutageMonitor Manually, steps 1-3).
  3. Enter InstallUtil.exe /u .\InternetOutageMonitor.exe.
  4. Restart your computer.