get dc app

$name = Get-ADComputer -Filter * -Property * | select Name,IPv4Address

$app = Get-WmiObject -ComputerName $_.name -class Win32_Product |Select-Object -Property name,version | Where-Object {$_.name -match "QQ"}

$app |Export-CSV "C:\\app.csv" -NoTypeInformation -Encoding UTF8

posted @ 2019-05-21 20:42  Jupiter077  阅读(167)  评论(0编辑  收藏  举报