How to detect a network connection drop?

Pr3di

Honorable
Hello techies,

My question today is - how do I detect if a network connection has stopped during the day.
I`m working on a friend`s laptop, and her WiFi is dropping every few days for no apparent reason.

What I want to do is leave the laptop working for a few days, and find some way to detect if the connection to the internet was lost at any point in time.

I was initially thinking of an infinite ping to google.com, and to export all the content to a txt file, but I`m not sure if that`s possible (if it is, I got the command wrong).

So, if you have any bright ideas, please post them here!
 
Solution
First you need to determine if the wireless link to the router is dropping or if the link from the router out is dropping.

Microsoft PowerShell has some easy to use tools if you are on Windows 8 or higher. Google "Get-NetAdapter".

You could loop checking the dnsservers, the connection status, link rate etc. You can also ping from PowerShell. But you can do it on a more reasonable schedule. Every 10 seconds or 30 seconds.

Powershell can automatically create a "console log" of everything so that you can have a file.
First you need to determine if the wireless link to the router is dropping or if the link from the router out is dropping.

Microsoft PowerShell has some easy to use tools if you are on Windows 8 or higher. Google "Get-NetAdapter".

You could loop checking the dnsservers, the connection status, link rate etc. You can also ping from PowerShell. But you can do it on a more reasonable schedule. Every 10 seconds or 30 seconds.

Powershell can automatically create a "console log" of everything so that you can have a file.
 
Solution