Set up Network Share for HP Driver Repository
Log In or Register to download the BES file, and more.

0 Votes

Description

Use the action below to setup a Network Share for an HP driver repository.

Note: Ensure there is sufficient hard disk space.


Property Details

ID27400
StatusBeta - Preliminary testing ready for more
TitleSet up Network Share for HP Driver Repository
DomainBESC
CategoryDrivers
SourceInternal
Source SeverityUnspecified
Source Release Date12/10/2025 12:00:00 AM
Keywordsdrivers, hp, image assistant
Is TaskTrue
Added by on 12/29/2025 5:30:53 AM
Last Modified by on 12/29/2025 5:30:53 AM
Counters 214 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 1 fixlet   * Results in a true/false
Show indented relevance
(not exist value of settings "_BESClient_DriverRepo_HP" of client) or (not exists files "HP.ClientManagement.psm1" of folders of folders of folders (program files x64 folder as string & "\WindowsPowerShell\Modules"))
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

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// Request drive letter from user
action parameter query "DriveLetter" with description "Specify the drive letter to store the driver repository within. For example, 'C'." with default ""

if {not exists parameter "DriveLetter"}
    parameter "DriveLetter" = "C"
endif

// Verify valid drive letter
continue if {(exists match (regex "[A-Za-z]") of (parameter "DriveLetter")) and ((parameter "DriveLetter") & ":" is contained by set of (names of drives whose (type of it = "DRIVE_FIXED")))}

// Create and share driver repository folder
parameter "DriverRepo" = "{(parameter "DriveLetter") & ":\bigfix.DriverRepo.HP"}"
folder create "{parameter "DriverRepo"}"
dos net share bigfix.DriverRepo.HP="{parameter "DriverRepo"}"

// Install HP CMSL
if {not exists files "HP.ClientManagement.psm1" of folders of folders of folders (program files x64 folder as string & "\WindowsPowerShell\Modules")}
    action uses wow64 redirection false
    waithidden powershell -WindowStyle Hidden -ExecutionPolicy Bypass -Command "Install-PackageProvider -Name NuGet -Force; Install-Module PackageManagement, PowerShellGet -Force -AllowClobber -SkipPublisherCheck"
    waithidden powershell -WindowStyle Hidden -ExecutionPolicy Bypass -Command "Import-Module PowerShellGet; Install-Module -Name HPCMSL -Force -AcceptLicense"
    waithidden powershell -WindowStyle Hidden -ExecutionPolicy Bypass -Command "cd {parameter "DriverRepo"}; Initialize-Repository; Set-RepositoryConfiguration -Setting OfflineCacheMode -CacheValue Enable; Set-RepositoryConfiguration -Setting OnRemoteFileNotFound -Value LogAndContinue"
    continue if {exists files "HP.ClientManagement.psm1" of folders of folders of folders (program files x64 folder as string & "\WindowsPowerShell\Modules")}
endif

setting "_BESClient_DriverRepo_HP"="{parameter "DriverRepo"}" on "{now}" for client
Success Criteria

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


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!