Hi there,
To find office components installed use this WMI method:
Get-Content -Path c:\scripts\Computers.txt |
ForEach-Object {
Get-WmiObject Win32_Product -Filter "Name like '%Office%'" -ComputerName $_
}
You can find more from this thread
https://social.technet.microsoft.com/Forums/ie/en-US/0487319d-2db7-4369-b95e-83b74fc17313/powershell-script-to-identify-office-version-on-a-remote-system-using-computer-name?forum=ITCG
If the reply is helpful, please Upvote and Accept it as an answer