I want to use Test-Path for Microsoft Office 365 PRO PLUS.
I used this code but I want to go for the executable to make sure it is really installed. Please see the code below:
$Office = "C:\Program Files\Microsoft Office 15"
$testoffice = Test-Path $Office
If ($testoffice -eq $true) {Write-Host "Office 365 exist!"}
Else {Write-Host "Office 365 doesn't exist!"}
Read-Host "Press enter to exit"
Am I using the right directory for it? Is there an executable to make sure the installation went through and not just the folder?