Set up Network Share for HP Driver Repository
| 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
| 27400 | |
| Beta - Preliminary testing ready for more | |
| Set up Network Share for HP Driver Repository | |
| BESC | |
| Drivers | |
| Internal | |
| Unspecified | |
| 12/10/2025 12:00:00 AM | |
| drivers, hp, image assistant | |
| True | |
| skyler on 12/29/2025 5:30:53 AM | |
| skyler on 12/29/2025 5:30:53 AM | |
| 214 Views / 0 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
| Used in 368 fixlets | * Results in a true/false |
(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 |
(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 |
"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: |

