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

原文地址:https://www.cnblogs.com/junjiany/p/10902235.html