A small Windows Service that logs when your computer has an internet connection.
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.
- Download or clone the repository locally into the Projects folder of Visual Studio 2017.
- Open InternetOutageMonitor.sln in Visual Studio 2017.
- Right click on the InternetOutageMonitor project in the Solution Explorer.
- In the context menu, select Build.
- Ensure that the folder containing InstallUtil.exe is in the system path.
- If it is not in the path, go to Control Panel>System and Security>System and click on Advanced System Settings.
- Switch tabs to Advanced on the System Properties window that has opened, and press Environment Variables...
- In the System Variables pane, highlight Path, then press Edit.
- Press New and add
C:\Windows\Microsoft.NET\Framework\v4.0.30319
as the new entry.
- Open the command prompt as an Administrator.
- Navigate to the InternetOutageMonitor project folder.
- Navigate to
InternetOutageMonitor\InternetOutageMonitor\bin\Debug
. - Enter
InstallUtil.exe .\InternetOutageMonitor.exe
. - If the installation is successful, restart your computer to start the service.
Internet connection status is logged in C:\Windows\SysWOW64\OutageLog.txt
.
- Open the command prompt as an Administrator.
- Navigate to the location of
InternetOutageMonitor.exe
(see Installing InternetOutageMonitor Manually, steps 1-3). - Enter
InstallUtil.exe /u .\InternetOutageMonitor.exe
. - Restart your computer.