For those who were not in attendance at the BigFix Federal User Group yesterday, I wanted to share a portion of one of the presentations. If you have ever wished for a way to work with BigFix in a simple PowerShell-native way, have a look at the BigFix PowerShell Module.
Check it out at https://www.powershellgallery.com/packages/BigFix or from within PowerShell…
PS> Install-Module -Name BigFix
The initial (version 1.0) release is capable of working with the SOAP API (Web Reports) to enable you to evaluate Session Relevance without any of the normal hassles (SOAP Envelopes, XML translating, type conversions, etc) with results exposed as simple types, arrays, and objects.
Release 1.1 (scheduled to drop on or about 3/31) will add efficient Client Relevance evaluation support.
Extensive help is provided both from within PowerShell (using the native Get-Help command) as well as on the project’s GitHub repository, but at its most simplest:
First, establish a session with a Web Reports Server:
New-WebReportsSession -Uri ‘https://webreports/’
Now, fire off as many Session Relevance statements as you want. For example if you want to evaluate the Session Relevance statement ‘number of bes computers’:
Invoke-EvaluateSessionRelevance -Relevance ‘number of bes computers’
Output:
Relevance Status Execution Time Evaluation Time Result Count Result
--------- ------ -------------- --------------- ------------ ------
number of bes computers Success 00:00:00.3917915 00:00:00 1 4