Skip to content

On a DHCP Server, find the ScopeID Which contains a specific ipv4 address

License

Notifications You must be signed in to change notification settings

flemmingss/Find-DhcpServerv4ScopeID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Find-DhcpServerv4ScopeID

On a DHCP Server, find the ScopeID Which contains a specific ipv4 address

Description

Many cmdlets in the DHCP Server PowerShell Module require a ScopeID as parameter to run. This script is a easy way to go trough all scopes on the DHCP server to find the ScopeID that belongs to a spesific IPv4 address.

Instructions

Load module:

Import-Module .\Find-DhcpServerv4ScopeID

DHCP Server PowerShell Module (DHCPServer) needs to be installed. https://social.technet.microsoft.com/wiki/contents/articles/26694.dhcp-server-powershell-module.aspx

Functions

Find-DhcpServerv4ScopeID -ComputerName <dhcp server> (optional) -IPaddress <ip> -Details (optional)

Examples

Find-DhcpServerv4ScopeID -IPaddress 10.174.9.9
Find-DhcpServerv4ScopeID -IPaddress 10.174.9.9 -Details
Find-DhcpServerv4ScopeID -ComputerName dhcp-server -IPaddress 10.174.9.9
Find-DhcpServerv4ScopeID -ComputerName dhcp-server -IPaddress 10.174.9.9 -Details

Screenshots

alt tag

alt tag

Changelog

  • 14.08.2019
    • Release
  • 28.08.2020
    • Added support for remote DHCP server, use parameter -ComputerName to specify server.

About

On a DHCP Server, find the ScopeID Which contains a specific ipv4 address

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published