HP Client Management Script Library 1.4 released
Today we release HP Client Management Script library v1.4. With this release, we've started working on making the library more idiomatic, based on feedback and best practices. The first thing you may notice is that the casing of the parameters has been altered to match coding standards (although, this is an ongoing process), and where possible the parameters have been changed to match those used by Microsoft in their own libraries. One example is the remote computer name used during remote operations, which was previously specified as -target now is specified as -ComputerName. The old parameter name is still accepted as a parameter alias.
Speaking of remote operations, we've added support for passing your own CimSession to functions that support remote operations. This allows you to specify more complex authentication rules, or use Wsman instead of DCOM for remote operations.
For example, to use Wsman instead of DCOM, create your session and pass it to the function:
$SessionOption = New-CimSessionOption -Protocol Wsman -ComputerName MyPC $MySession = New-CimSession -ComputerName MyServer -SessionOption $SessionOption Get-HPBIOSSettingsList -CimSession $MySession
Secure Platform Management and HP Sure Recover
Version 1.4 of the library introduces support for HP Secure Platform Management and HP Sure Recover provisioning. We won't go too much in depth on these features in this blog post since we plan a separate blog entry (or entries) on this subject. Why may you want to consider using Sure Recover? Check out the linked PDF above.
HPIA Offline Repository
A number of our customers have tried to use HP Image Asisstant (HPIA) in environments where network access is problematic, so they've asked for a capability to create an offline repository that HPIA can consume without reaching out to HP servers. We have extended the HP CMSL repository module to (optionally) download all files that HPIA may require for analyzing a specific set of platforms. This can be retrofitted to existing repositories with a simple setting change:
Set-RepositoryConfiguration -Setting OfflineCacheMode -CacheValue Enable
Once this is set, next time synchronization is invoked, additional datafiles will be downloaded into the repository Then you can tell HPIA to use the repository as a data source (assume C:\MyRepository is your HP CMSL repository):
HPImageAssistant.exe /OfflineMode:C:\MyRepository /Operation:Analyze [additional parameters]
Powershell Gallery
This will be the first release that will be published to the powershell gallery, and you will be able to install it via the 'Install-Package HPCMSL' command. Availability in the gallery may lag a couple of days behind the official packaged release, while we work out bugs in our release pipeline.
Since we finally solved most of our issues with the powershell gallery publishing, we are abandoning work on the Library Maintenance module, and it has been removed. We appologize for this, but we are confident most people would rather use Power Shell Gallery than a proprietary solution.
Summary image credit Jill Wellington, Michigan, USA, via pexels.com