Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Get DHCP Server Database Info

$
0
0

Summary: Learn how to use Windows PowerShell to get the DHCP Server database information.

Hey, Scripting Guy! Question How can I use Windows PowerShell to get the database information for a DHCP server if I do not know the name of the server?

Hey, Scripting Guy! Answer Use the ServerName property from the object returned by Get-DHCPServer to get the computer name, then use the Get-DhcpServerDatabase:

Get-DhcpServerDatabase -ComputerName (Get-DhcpServer).ServerName

Note   The DHCP functions come from the DHCPServer module obtained via the RSAT tools for Windows Server 2012. 


Viewing all articles
Browse latest Browse all 3333

Trending Articles