Public/Update-ModuleDellDriverPack.ps1
<#
.SYNOPSIS Updates the DellDriverPack PowerShell Module to the latest version .DESCRIPTION Updates the DellDriverPack PowerShell Module to the latest version from the PowerShell Gallery .LINK https://delldriverpack.osdeploy.com/functions/update-moduledelldriverpack .Example Update-ModuleDellDriverPack #> function Update-ModuleDellDriverPack { [CmdletBinding()] PARAM () try { Write-Warning "Uninstall-Module -Name DellDriverPack -AllVersions -Force" Uninstall-Module -Name DellDriverPack -AllVersions -Force } catch {} try { Write-Warning "Install-Module -Name DellDriverPack -Force" Install-Module -Name DellDriverPack -Force } catch {} try { Write-Warning "Import-Module -Name DellDriverPack -Force" Import-Module -Name DellDriverPack -Force } catch {} } |