Using Office Configuration Analyzer Tool (OffCAT) from a command line
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
- without installation on the end user workstation - it is usually not allowed in enterprise environments,
- 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 ;-)
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.
- Copy all of the OffCAT files (except OffCAT.exe) to the target computer (into the %LocalAppData%\Microsoft\OffCAT folder).
- Launch OffCATcmd.exe.
- Scan the specified Office program and version using command-line switches for OffCATcmd.exe.
- 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.
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.
After that when you transfer prepared OffCAT to end user workstation we are ready to verify Microsoft Office application configuration.
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.
- OffCAT can be downloaded from Microsoft website https://www.microsoft.com/en-us/download/details.aspx?id=36852
- Microft .NET Framework 4.5.2 is needed on the workstation where OffCAT need to be run
- Microsoft Office 2016 is not supported yet - for the OffCAT v. 2.1 :-/
- Thanks to Malgorzata Rembas to focus my attention that OffCAT can be run from CLI.
- 2016-06-02 - OffCAT v.2.2 was published on June 1st, 2016 - KB article is not updated on that moment (2016-06-02 23:20 CET)