Solved

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

Posted on 2016-11-03
2
30 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 82

Accepted Solution

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

Open in new window

0
 
LVL 19

Author Comment

by:compdigit44
Comment Utility
Worked perfectly!!!!

Genius....
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now