Skip to content

Run a powershell script at startup of your windows machine that lets you know when network has been disconnected

Notifications You must be signed in to change notification settings

alextfife/PowerShell-Network-Alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PowerShell-Network-Alert

Run a powershell script at startup of your windows machine that lets you know when network has been disconnected

Installation

  1. Put the script somewhere and copy the file path

C:\Users\[USERNAME]\Documents\network-alert.ps1

  1. Then navigate to:

C:\Users\[USERNAME]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

  1. Right click > New > Shortcut

  2. Paste this as the target

powershell.exe -noexit -ExecutionPolicy Bypass -File C:/path/to/script/from/step/1

This script was made entirely by ChatGPT, modified to ping to captive.apple.com (to also activate any network login pages)

About

Run a powershell script at startup of your windows machine that lets you know when network has been disconnected

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published