Add Devices to HP Driver Repository
Log In or Register to download the BES file, and more.

0 Votes

Description

Adds computer models to HP driver repository. Multiple models can be added within the same action. Once a model is added to the repository, it does not need to be re-added when updating drivers.

You must retrieve the Platform ID for each respective model added to the repository. This can be done using the Get-HPDeviceDetails function from the HP Client Management Script Library.

Example (PowerShell):

Import-Module HP.ClientManagement
Get-HPDeviceDetails -Like -Name ‘HP Elitebook 840’


Property Details

ID27401
StatusBeta - Preliminary testing ready for more
TitleAdd Devices to HP Driver Repository
DomainBESC
CategoryDrivers
SourceInternal
Source SeverityUnspecified
Source Release Date12/22/2025 12:00:00 AM
Keywordsdrivers, hp, image assistant
Is TaskTrue
Added by on 12/29/2025 5:32:10 AM
Last Modified by on 12/29/2025 5:32:10 AM
Counters 210 Views / 0 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 368 fixlets   * Results in a true/false
Show indented relevance
(if( name of operating system starts with "Win" ) then platform id of operating system != 3 else false) AND (if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 3 fixlets   * Results in a true/false
Show indented relevance
"Win98|WinME|Win2000|WinXP|Win2003|WinXP-2003|WinVista|Win2008" does not contain name of operating system
Used in 2 fixlets   * Results in a true/false
Show indented relevance
(exists value of settings "_BESClient_DriverRepo_HP" of client) and (exists files "HP.ClientManagement.psm1" of folders of folders of folders (program files x64 folder as string & "\WindowsPowerShell\Modules"))
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists file "repository.json" of folder (value of settings "_BESClient_DriverRepo_HP" of client & "\.repository")

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// Request parameters from user
action parameter query "Platforms" with description "Specify the platform ID(s) to add to the HP driver repository filter. Multiple entries must be separated by a comma. For example, '8B41,8C63'." with default ""
action parameter query "Os" with description "Specify the OS to add to the HP driver repository filter. Can only be 'win10' or 'win11'. For example, 'win11'." with default ""
action parameter query "OsVers" with description "Specify the OS version(s) to add to the HP driver repository filter. Multiple entries must be separated by a comma. For example, '24H2,25H2'." with default ""

// Verify valid parameters
continue if {(not exists substrings separated by "," whose (length of it != 4) of (parameter "Platforms")) and (not exists match (regex "[^A-Za-z0-9]") of (substrings separated by "," of (parameter "Platforms")))}
continue if {(parameter "Os") as lowercase is contained by set of ("win10";"win11")}
continue if {(not exists substrings separated by "," whose (length of it != 4) of (parameter "OsVers")) and (not exists match (regex "[^A-Za-z0-9]") of (substrings separated by "," of (parameter "OsVers")))}

action uses wow64 redirection false

// Create PowerShell script
createfile until ENDOFSCRIPT
cd "{value of setting "_BESClient_DriverRepo_HP" of client}"
Import-Module HP.ClientManagement

$platforms = "{parameter "Platforms"}".Split(',')
$os = "{parameter "Os"}"
$osVers = "{parameter "OsVers"}".Split(',')

$platforms | ForEach-Object {{
    $platform = $_

    $osVers | ForEach-Object {{
        Add-RepositoryFilter -Platform $platform -Os $os -OsVer $_ -Category bios,firmware,driver,dock
    }
}
ENDOFSCRIPT

parameter "ScriptPath" = "__Download\hp-driver-filters.ps1"
if {exists file (parameter "ScriptPath")}
    delete {parameter "ScriptPath"}
endif
copy __createfile "{parameter "ScriptPath"}"

// Run script
waithidden powershell.exe -ExecutionPolicy Bypass -File "{parameter "ScriptPath"}"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 2

Action Link Click here to view the download page for the HP Client Management Script Library.
Script Type URL
https://www.hp.com/us-en/solutions/client-management-solutions/download.html
    

Action 3

Action Link Click here to view documentation on Get-HPDeviceDetails from HPCMSL.
Script Type URL
https://developers.hp.com/hp-client-management/doc/get-hpdevicedetails
    

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!