zhouying23 发表于 2018-9-2 12:51:23

Usefull Powershell script

  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={::FromFileTime($_.lastLogonTimestamp)}} | Export-CSV AllWindows.csv -NoTypeInformation -Encoding UTF8

页: [1]
查看完整版本: Usefull Powershell script