Quantcast
Channel: System Center Dudes
Viewing all articles
Browse latest Browse all 411

How to detect Office bitness with MEMCM global condition

$
0
0

I recently came across an issue where a MEMCM) Global condition was detecting the Office bitness (architecture), but only to one specific version(example below). This lead to a requirement issue where the computer was running another version of Office that wasn’t covered by the global condition. With that said, we still needed a requirement only for the architecture of Office, while the version was not that important for now.

MEMCM Global Condition Office Bitness

I’ve uploaded a new script to Technet Gallery that returns the Office Bitness no matter what version is installed (from Office XP to the latest).

In this post, I’ll describe how to use the script with a MEMCM global condition as a requirement for an application.

MEMCM Global Condition Office Bitness Requirement

The script

The script is looking at the Bitness registry key of Outlook.

MEMCM Global Condition Office Bitness

The script will return the value of Bitness. So either x64, x86 or blank if not detected.

MEMCM Global Condition Office Bitness

To be able to use the script within a MEMCM Global Condition, it must only return this value. If there are additional verbose, like write-host, the Global condition will not work.

MEMCM Global Condition Office Bitness

  • Browse to Software Library/Application Management/Global Condition and click Create
MEMCM Global Condition Office Bitness
  • Name: Office Bitness
    • Device Type: Windows
    • Condition: Settings
    • Setting type: Script
    • Data type: String
  • Click add Script
MEMCM Global Condition Office Bitness
  • Open up the downloaded PowerShell script
MEMCM Global Condition Office Bitness
  • Click Ok. The global condition is ready to be used

Add Global condition to an application

  • Edit a Deployment type of application that has the requirement for Office Bitness. On the Requirements tab, select Add.
MEMCM Global Condition Office Bitness
  • Select category Custom, and then select the Office Bitness global condition created earlier.
MEMCM Global Condition Office Bitness
  • As explained earlier, the script returns x64, x86 or nothing.
    • Set the equal value you wish to have as a requirement.
MEMCM Global Condition Office Bitness

That’s it! Now the application will evaluate the Office architecture no matter the version of Office to match the requirement!

For more information on Global conditions, see Microsoft docs.

Hope this help 🙂

Note: There is a rating embedded within this post, please visit this post to rate it.

Share this Post

The post How to detect Office bitness with MEMCM global condition appeared first on System Center Dudes.


Viewing all articles
Browse latest Browse all 411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>