You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($cost.ApproachingDataLimit-or$cost.OverDataLimit-or$cost.Roaming-or$cost.BackgroundDataUsageRestricted-or ($cost.NetworkCostType-ne"Unrestricted")) {
Write-ToLog"Could not evaluate metered connection status - skipping check.""Gray"
46
+
return$true
47
+
}
39
48
49
+
if ($cost.ApproachingDataLimit-or$cost.OverDataLimit-or$cost.Roaming-or$cost.BackgroundDataUsageRestricted-or ($networkCostTypeName-ne"Unrestricted")) {
40
50
Write-ToLog"Metered connection detected.""Yellow"
41
51
42
52
if ($WAUConfig.WAU_DoNotRunOnMetered-eq1) {
43
-
44
53
Write-ToLog"WAU is configured to bypass update checking on metered connection"
45
54
return$false
46
-
47
55
}
48
56
else {
49
-
50
57
Write-ToLog"WAU is configured to force update checking on metered connection"
0 commit comments