Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

README_Check RemoteOfficeVersions

Russell Smith edited this page Jul 22, 2016 · 2 revisions

#Check Remote Office Versions

This PowerShell Function will query the local or remote workstations to find the version of Office that is installed.

###Pre-requisites

  1. Remote Windows Management Instrumentation (WMI) connectivity and permissions to any remote computers you are querying.

###Examples

  1. Open a PowerShell console.

     From the Run dialog type PowerShell 
    
  2. Change directory to the location where the PowerShell Script is saved.

     Example: cd C:\PowerShellScripts
    
  3. Run the Script. With no parameters specified the script will return the locally installed Office Version.

     Type . .\Get-OfficeVersion.ps1
     Press Enter and then if Microsoft Office is installed locally it should display. 
     By including the additional period before the relative script path you are 'Dot-Sourcing' 
     the PowerShell function in the script into your PowerShell session which will allow you to 
     run the function from the console.
    
  4. Run the Script against a remote computer.

     Type Get-OfficeVersion -ComputerName Client01
    
  5. Run the Script against multiple remote computers.

     Type Get-OfficeVersion -ComputerName Client01,Client02
    

Analytics