IT Praktyk Blog

Using Office Configuration Analyzer Tool (OffCAT) from a command line

Posted May 18, 2016; Last update June 11, 2016

Introduction

Most people involved in end users support or managing Exchange servers heard about the Office Configuration Analyzer Tool (OffCAT). If you don’t please read first Office Configuration Analyzer Tool (OffCAT) information published here.

But only few (?) know that OffCAT can be used also

  1. without installation on the end user workstation - it is usually not allowed in enterprise environments,
  2. from a command line.

Yes, of course everyone read all information in the section ‘Details’ on the download page or the chapter ‘OffCAT in the Enterprise’ in the ‘OffCAT v2.1 ReadMe.docx’ file ;-)

Action

For use OffCAT from a command line you need just follow instruction from the ReadMe.docx file

A command-line version of OffCAT (OffCATcmd.exe) is included in the folder in which you installed OffCAT (by default, the %LocalAppData%\Microsoft\OffCAT folder).

You must know that under installation of OffCAT the entry in registry will be created like provided below

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"OffCAT"="\"C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\OffCAT\\OffCAT_RTS.exe\" -startup"

so if you are installing the OffCAT on your workstation not necessarily would like start it every time when you start your system, and you will remove that entry from the registry.

  1. Copy all of the OffCAT files (except OffCAT.exe) to the target computer (into the %LocalAppData%\Microsoft\OffCAT folder).
  2. Launch OffCATcmd.exe.
  3. Scan the specified Office program and version using command-line switches for OffCATcmd.exe.
  4. Save the scan report file to a network share.

Even if the recipe provides the exact path to the folder where files need to be copied you can copy also to any other folder.

Results

Result 1

You have installed the OffCAT on your administrator workstation. The folder size after removing OffCAT.exe is (for the OffCAT version 2.1) about 41.6 MB.

After compression (7-zip v. 16.0 x64) with options like on the screenshot.

you have prepared portable version of OffCAT in self-extracting archive, where the archive file size is 6.91 MB. The archive in a zip format (created by 7-zip also and with similar set of settings) is 12.0 MB in size.

Result 2

After that when you transfer prepared OffCAT to end user workstation we are ready to verify Microsoft Office application configuration.

Summary

Now we know how we can prepare the OffCAT package ready to use with the Command Line.

More about switches and proposed PowerShell script to handle scanning I’ll provide you in the next post.

Remarks

  1. OffCAT can be downloaded from Microsoft website https://www.microsoft.com/en-us/download/details.aspx?id=36852
  2. Microft .NET Framework 4.5.2 is needed on the workstation where OffCAT need to be run
  3. Microsoft Office 2016 is not supported yet - for the OffCAT v. 2.1 :-/

Thanks

  1. Thanks to Malgorzata Rembas to focus my attention that OffCAT can be run from CLI.

Updates