From 40ba0f1003692a1aa79ace060b9026ca923003f0 Mon Sep 17 00:00:00 2001 From: Ken Presler Date: Thu, 23 Jan 2025 08:35:09 -0500 Subject: [PATCH] Update HPDrivers.psm1 Removed the break after the ping attempt and edited the comment as some users may have SNMP traffic disabled. --- HPDrivers.psm1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HPDrivers.psm1 b/HPDrivers.psm1 index 66bc508..3590c35 100644 --- a/HPDrivers.psm1 +++ b/HPDrivers.psm1 @@ -141,8 +141,8 @@ function Get-HPDrivers { $TestConn = Test-Connection "hpia.hpcloud.hp.com" -Count 2 -ErrorAction Ignore if (!$TestConn) { Write-Output `n - Write-Warning "hpia.hpcloud.hp.com is unavailable!`nPlease check your internet connection or try again later..`n" - Break + Write-Warning "hpia.hpcloud.hp.com is could be unavailable!`nScript will still try incase SNMP traffic is blocked..`n" + #Break } # warn if battery charge drops below 50% @@ -390,4 +390,4 @@ function Get-HPDrivers { } } } -Export-ModuleMember -Function Get-HPDrivers \ No newline at end of file +Export-ModuleMember -Function Get-HPDrivers