How to get the AD compter OS Version, Created, patch
Get-ADComputer -searchbase ‘OU=domain controllers,DC=abc,DC=COM ‘ -filter * -Properties * | Select-Object Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion,created,@{n="lastLogonDate";e={[datetime]::FromFileTime($_.lastLogonTimestamp)}} | Export-CSV AllWindows.csv -NoTypeInformation -Encoding UTF8
原文地址:http://linjiajun.blog.51cto.com/1303870/1611684