Skip to content

Instantly share code, notes, and snippets.

@contactbrenton
Last active February 4, 2024 23:09
Show Gist options
  • Save contactbrenton/1e0aa85145b1c0d102296bf756c3b89e to your computer and use it in GitHub Desktop.
Save contactbrenton/1e0aa85145b1c0d102296bf756c3b89e to your computer and use it in GitHub Desktop.
Install-HPCMSL.ps1
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Start-Sleep -Seconds 60
Install-Module -Name PowerShellGet -Force
Install-Module -Name HPCMSL -SkipPublisherCheck -AcceptLicense -Force
Import-Module -Name HPCMSL
Write-Host "HP Client Management Script Library installation complete."
@contactbrenton
Copy link
Author

contactbrenton commented Feb 4, 2024

An old version of PowerShellGet can cause issues here. This is installed by default and doesn't get removed when you upgrade. https://gist.github.com/contactbrenton/1ae6c2a6a658725b50fb8f50a45b7475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment