首页 > 解决方案 > 如何找到 DHCP 服务器?

问题描述

我有几个域,所有的服务器\计算机都没有描述

我试图编写一个脚本来检索网络设置,这样我就可以找到 DHCP 服务器

(netsh show dhcp server 和 ipconfig /all 根本没有帮助)

$computers = get-adcomputer -filter {OperatingSystem -notlike "*Server*"} -properties OperatingSystem | sort name | format-table name,OperatingSystem
 foreach($computer in $computers){
 get-wmiobject -class win32_networkadapterconfiguration -computername $computer
}

标签: windowspowershellserverdhcp

解决方案


推荐阅读