Skip to content

This nifty little script notifies a system administrator via email when it detects a new device on the network

License

Notifications You must be signed in to change notification settings

maynich/New-Lease-Notifier-DHCP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

New-Lease-Notifier-DHCP creates a CSV log of MAC addresses from a specified DHCP server. When run multiple times, it will detect any new DHCP leases by comparing with the previously created log, notify sysadmin via email with more verbose information, and update the master log with relevant values from the lease.

The script is capable of handling multiple new leases at once, support for limiting scopes will be come sometime. Use with Windows Task Scheduler.

Be sure to have Windows Remote Server Administration Tools and to modify the information located within the first two regions of the script to suit your needs.

Verified working on PowerShell version 5+ on Windows Server 2008 r2, Windows 7 Professional sp1 and sp2, and Windows 10.

About

This nifty little script notifies a system administrator via email when it detects a new device on the network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%