windows - 如何找到 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
}
解决方案
推荐阅读
- angular - 如何防止在角度 6 中评估 ngIf 条件的延迟?在评估值之前显示默认图像。如何防止这种情况?
- r - 有没有办法在 R 中使用 ggplot 在地图的两个区域之间添加空间?
- python - 使用 setattr() 时获取真正的调用方方法名称
- jenkins - pollSCM 触发器在这个 Jenkinsfile 中指的是什么?
- php - 如何访问类的静态属性
- swift - 自定义 UITableViewCell 中的 UIImageView 在单击时调整大小
- java - 解密不适用于生产(Red Hat Enterprise Linux 7)并且适用于 UAT(基于 SUSE 的 linux 发行版)
- asp.net-mvc - 有必要在没有表单的 ajax 帖子中使用 __RequestVerificationToken 吗?
- numpy - “numpy.ndarray”对象没有属性“as_matrix”
- ios - 如何修复分页,我的功能将无法正常工作 Swift