Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lvkv/new-lease-notifier-dhcp
Notify a system admin via email when a new device connects to the network
https://github.com/lvkv/new-lease-notifier-dhcp
powershell
Last synced: 22 days ago
JSON representation
Notify a system admin via email when a new device connects to the network
- Host: GitHub
- URL: https://github.com/lvkv/new-lease-notifier-dhcp
- Owner: lvkv
- License: mit
- Created: 2016-08-23T13:40:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-13T14:04:00.000Z (over 7 years ago)
- Last Synced: 2024-11-07T03:12:42.196Z (2 months ago)
- Topics: powershell
- Language: PowerShell
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.