📅  最后修改于: 2022-03-11 14:51:38.202000             🧑  作者: Mango
Get-ADComputer -Filter {OperatingSystem -like "*windows*server*"} -Properties * | sort DNSHostname | select DNSHostName, OperatingSystem | Export-Csv -Path "$home\Desktop\ADServers.csv"