Solved

Windows 2012 R2 DHCP Script to Search all Scopes for Clients with a Specific naming context

Posted on 2016-11-03
2
57 Views
Last Modified: 2016-11-04
We have a very large DHCP server environment with 320 scopes. Using powershell is there someway to search each scope recursively and list all workstation that match a specific naming context and their current IP address?
0
Comment
Question by:compdigit44
2 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 41873483
How about
Get-DhcpServerv4Scope | Get-DhcpServerv4Lease | Where-Object {$_.HostName -like '*Whatever*'}

Open in new window

0
 
LVL 19

Author Comment

by:compdigit44
ID: 41874494
Worked perfectly!!!!

Genius....
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help you understand what HashTables are and how to use them in PowerShell.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question