Public/Functions/Catalogs/Child/Get-HPDriverCatalog.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
<#
.SYNOPSIS Returns the Driver Component of the HP System Catalog .DESCRIPTION Returns the Driver Component of the HP System Catalog .PARAMETER Compatible If you have a HP System, this will filter the results based on your Baseboard Product value .LINK https://github.com/OSDeploy/OSD/tree/master/Docs .NOTES #> function Get-HPDriverCatalog { [CmdletBinding()] param ( #Limits the results to match the current system [System.Management.Automation.SwitchParameter] $Compatible ) if ($PSBoundParameters.ContainsKey('Compatible')) { Get-HPSystemCatalog -Component Driver -Compatible | Sort-Object -Property CreationDate -Descending } else { Get-HPSystemCatalog -Component Driver | Sort-Object -Property CreationDate -Descending } } |