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