if ($DotFilesShowScriptEntry) {
    Write-Verbose -Message (Get-DotFilesMessage -Message $PSCommandPath)
}

if (!(Test-IsWindows)) {
    return
}

try {
    if (!$DotFilesFastLoad) {
        Test-ModuleAvailable -Name PSWinVitals
    }
} catch {
    Write-Verbose -Message (Get-DotFilesMessage -Message 'Skipping PSWinVitals settings as module not found.')
    return
}

Write-Verbose -Message (Get-DotFilesMessage -Message 'Loading PSWinVitals settings ...')

# Invoke-VitalMaintenance: Exclude Silverlight updates
$PSDefaultParameterValues['Invoke-VitalMaintenance:WUTitleExclude'] = 'Silverlight'

if ($DotFilesShowScriptEntry) {
    Write-Verbose -Message (Get-DotFilesMessage -Message $PSCommandPath)
}

if (!(Test-IsWindows)) {
    return
}

try {
    if (!$DotFilesFastLoad) {
        Test-ModuleAvailable -Name PSWinVitals
    }
} catch {
    Write-Verbose -Message (Get-DotFilesMessage -Message 'Skipping PSWinVitals settings as module not found.')
    return
}

Write-Verbose -Message (Get-DotFilesMessage -Message 'Loading PSWinVitals settings ...')

# Get-VitalInformation: Exclude Silverlight updates
$PSDefaultParameterValues['Get-VitalInformation:WUParameters'] = @{ NotTitle = 'Silverlight' }

# Invoke-VitalMaintenance: Exclude Silverlight updates
$PSDefaultParameterValues['Invoke-VitalMaintenance:WUParameters'] = @{ NotTitle = 'Silverlight' }

Update default parameters for PSWinVitals v0.5.0
Update default parameters for PSWinVitals v0.5.0
