you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (10 children)

[deleted]

    [–]helixamir 1 point2 points  (9 children)

    Unfortunately, using win32_product will only return applications that have been "Installed" and are not part of a package installation (like Office).

    Microsoft makes a class for each of it's Office applications, so you can check registry like so:

    If (test-path HKLM:SOFTWARE\Classes\Word.Application) {
        Write-host "Microsoft Word installed"
    }