Public/Dell/Get-MyDellDriverCab.ps1
function Get-MyDellDriverCab { [CmdletBinding()] param () #=================================================================================================== # Require Dell Computer #=================================================================================================== if ((Get-MyComputerManufacturer -Brief) -ne 'Dell') { Write-PrefixTime; Write-Warning "Dell computer is required for this function" Break } Write-Verbose "Get-MyDellDriverCab: This function is currently in development" Write-Verbose "Get-MyDellDriverCab: Results are for Windows 10 x64 only" $ErrorActionPreference = 'SilentlyContinue' $GetOSDDriver = Get-OSDDriver -OSDGroup DellModel $GetOSDDriver = $GetOSDDriver | ` Where-Object {$_.Model -eq (Get-MyComputerModel)} | ` Where-Object {$_.OsVersion -eq '10.0'} | ` Where-Object {$_.OsArch -eq 'x64'} | ` Sort-Object LastUpdate -Descending | Select-Object -First 1 Return $GetOSDDriver } |