Skip to main content

Snow Inventory Agent Script - Microsoft Office products information 2

Here you can find the release notes for Snow Inventory Agent Script - Microsoft Office products information 2.


2.1.0 latest

Release date: 2024-05-08

(SIT-3715)

Compatible Versions

Snow Inventory Agent for WindowsMicrosoft PowerShell
Version 5 or laterVersion 3 and later

Information

The scan-msinfo.ps1 to enhance recognition of:

  • Project and Visio, if Installed through the Office 365 distribution and MS Portal
  • MSDN recognition
  • In-depth gathering of ProductReleaseIDs to enhance MS Office 2016/2019 & 365 recognition
  • If the product has been deployed and installed with the Click-to-Run option

The script must be executed as part of the Snow Inventory Agent for Windows, according to the topic Running PowerShell scripts as part of the scanning process on Snow Docs. Otherwise the results will not be included in the snowpack.

In the case that you want to run a manual scan, this script must be executed with appropriate permissions, so execute it using only sc.exe control SnowInventoryAgent5 128, as described in the Windows Agent - Command line topic on Snow Docs.

For debugging purposes, the script can be executed manually and supports common parameters, so you will receive detailed logs using the command scan-msinfo.ps1 -Debug -InformationAction 'Continue'.

Function

This script utilizes the Get-WmiObject and Get-CimInstance PowerShell cmdlets, depending on the identified PowerShell Version, to retrieve additional data surrounding Office 365, 2019, 2016, MSDN distributions, and information regarding if MS Project and MS Visio have been installed through the M365 Portal.

The following WMI Classes and CIM Instances are targeted:

  • SoftwareLicensingProduct
  • OfficeSoftwareProtectionProduct

To collect, if a product was installed via ClicktoRun, the script utilizes the Get-ItemProperty cmdlet in PowerShell to retrieve the ProductReleaseIDs and ClientVersionToReport from the following registry path:

  • HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration

To collect, if a product is running in the limited "Viewer Mode", the script utilizes the Get-ItemProperty cmdlet in PowerShell to retrieve the ProductReleaseIDs and ClientVersionToReport from the following registry path:

  • HKLM:\SOFTWARE\Policies\Microsoft\office\16.0\common\licensing

It returns the script manifest using the name MSinfo.

MediumIntegrity

This script does require medium integrity to access the Get-WmiObject and Get-CimInstance classes.

Troubleshooting

Custom encryption might need to be applied to this script when running on Snow Inventory Agent for Windows prior to version 7, as it will not be executed in medium integrity.

CORRECTIONS

  • File encoding changed to UTF-8-BOM to prevent HashMismatch errors (04771125).

DEPRECATED

  • There will be no encrypted snow-ps1 version of this script provided by Snow Software.

2.0

Release date: 2024-02-08

(DIS-5157)

Compatible Versions

Snow Inventory Agent for WindowsMicrosoft PowerShell
Version 5 or laterVersion 3 and later

Information

The scan-msinfo.ps1 to enhance recognition of:

  • Project and Visio, if Installed through the Office 365 distribution and MS Portal
  • MSDN recognition
  • In-depth gathering of ProductReleaseIDs to enhance MS Office 2016/2019 & 365 recognition
  • If the product has been deployed and installed with the Click-to-Run option

The script must be executed as part of the Snow Inventory Agent for Windows, according to the topic Running PowerShell scripts as part of the scanning process on Snow Docs. Otherwise the results will not be included in the snowpack.

In the case that you want to run a manual scan, this script must be executed with appropriate permissions, so execute it using only sc.exe control SnowInventoryAgent5 128, as described in the Windows Agent - Command line topic on Snow Docs.

For debugging purposes, the script can be executed manually and supports common parameters, so you will receive detailed logs using the command scan-msinfo.ps1 -Debug -InformationAction 'Continue'.

Function

This script utilizes the Get-WmiObject and Get-CimInstance PowerShell cmdlets, depending on the identified PowerShell Version, to retrieve additional data surrounding Office 365, 2019, 2016, MSDN distributions, and information regarding if MS Project and MS Visio have been installed through the M365 Portal.

The following WMI Classes and CIM Instances are targeted:

  • SoftwareLicensingProduct
  • OfficeSoftwareProtectionProduct

To collect, if a product was installed via ClicktoRun, the script utilizes the Get-ItemProperty cmdlet in PowerShell to retrieve the ProductReleaseIDs and ClientVersionToReport from the following registry path:

  • HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration

To collect, if a product is running in the limited "Viewer Mode", the script utilizes the Get-ItemProperty cmdlet in PowerShell to retrieve the ProductReleaseIDs and ClientVersionToReport from the following registry path:

  • HKLM:\SOFTWARE\Policies\Microsoft\office\16.0\common\licensing

It returns the script manifest using the name MSinfo.

MediumIntegrity

This script does require medium integrity to access the Get-WmiObject and Get-CimInstance classes.

Troubleshooting

Custom encryption might need to be applied to this script when running on Snow Inventory Agent for Windows prior to version 7, as it will not be executed in medium integrity.

NEW

  • Snow Inventory Agent for Windows 7 support.
  • The script is now signed by Snow Software AB.

DEPRECATED

  • There will be no encrypted snow-ps1 version of this script provided by Snow Software.

Flexera does not own the third party trademarks, software, products, or tools (collectively, the "Third Party Products") referenced herein. Third Party Product updates, including user interface updates, may not be reflected in this content.