003-3.4.2.3 域内机器信息枚举.md
571 B / 2021-07-17 00:01:42
# 3.4.2.3 域内机器信息枚举
获取域内机子信息:
```
Get-NetComputer
Get-NetComputer -OperatingSystem "*server 2008*" (探测特定操作系统机子)
Get-NetComputer -Ping (ping探测存活主机)
Get-NetComputer -Fulldata
```
.
```
Get-ADComputer -Filter * -Proterties *
Get-ADComputer -Filter * | select Name
Get-ADComputer -Filter 'OperatingSystem -like "*Server 2016*"' -Properties OperatingSystem | select Name,OperatingSystem
Get-ADComputer -Filter * -Properties DNSHostName | %{Test-Connection -Count 1 -Computer $_.DnsHostName}
```