Network Device Status Monitor (NDSM)

PowerShell based network attached device monitor.

For full instructions and documentation, visit my blog post

Please consider donating to support my work:

Network Device Status Monitor can also be downloaded from:

Tweet me if you have questions: @mikegalvin_


Features and Requirements

CSV File Structure

The first line of the CSV file should be the column names so the script (and you) know what each column is for.

Please see the networkdevices-example.csv file for how to structure your own file.

The utility has been tested running on Windows 10 and Windows Server 2016, monitoring PCs and Servers running Windows 10, Windows Server 2016, Windows Server 2012 R2, and Windows Server 2008 R2. The utility must be run as a user with administrator-level privileges to the systems it is monitoring.

Generating A Password File

The password used for SMTP server authentication must be in an encrypted text file. To generate the password file, run the following command in PowerShell, on the computer that is going to run the script and logged in with the user that will be running the script. When you run the command you will be prompted for a username and password. Enter the username and password you want to use to authenticate to your SMTP server.

Please note: This is only required if you need to authenticate to the SMTP server when send the log via e-mail.

$creds = Get-Credential
$creds.Password | ConvertFrom-SecureString | Set-Content c:\scripts\ps-script-pwd.txt

After running the commands, you will have a text file containing the encrypted password. When configuring the -Pwd switch enter the path and file name of this file.


Here’s a list of all the command line switches.


The full path to a CSV file with a list of IP addresses and device names to monitor, separated by a comma.


The full path to a txt file containing the webhook URL for Teams. If this setting is configured other output settings will be ignored.


Use this switch to send a full report to Teams. This setting only has an effect when used with the -Teams switch.


The path where the HTML or CSV report should be output to. The filename will be NetDev-Status-Report.html/csv.


Enable monitoring mode. The number of seconds that she script should wait before running again. The minimum is 300 seconds (5 minutes) and the maximum is 28800 (8 hours). If not configured the script will run once and then exit.


Use a light theme for the web page generated. This setting had no effect on a CSV file report.


Output a CSV file instead of a HTML file for the report.


The subject line that the email should have. Encapulate with single or double quotes.


The email address the report should be sent to.


The from address the report should be sent from.


The DNS or IP address of the SMTP server.


The user account to connect to the SMTP server.


The txt file containing the encrypted password for the user account.


Connect to the SMTP server using SSL.

Example Configuration

NetDev-Status.ps1 -List C:\foo\networkdevices.csv -O C:\foo -Refresh 300 -Light

Using this example config, the script will execute using the list of network devices and output a html report called NetDev-Status-Report.htm to C:\foo. The status of the network devices will refresh every 5 minutes, and the web page will have a light theme instead of a dark theme.