Combined $IsSystem
parent
21b5fa8269
commit
7a560718c5
|
@ -49,10 +49,10 @@ if (Test-Network) {
|
||||||
#Get Current Version
|
#Get Current Version
|
||||||
$WAUCurrentVersion = $WAUConfig.DisplayVersion
|
$WAUCurrentVersion = $WAUConfig.DisplayVersion
|
||||||
Write-Log "WAU current version: $WAUCurrentVersion"
|
Write-Log "WAU current version: $WAUCurrentVersion"
|
||||||
#Check if WAU update feature is enabled or not
|
|
||||||
$WAUDisableAutoUpdate = $WAUConfig.WAU_DisableAutoUpdate
|
|
||||||
#If yes then check WAU update if System
|
|
||||||
if ($IsSystem) {
|
if ($IsSystem) {
|
||||||
|
#Check if WAU update feature is enabled or not
|
||||||
|
$WAUDisableAutoUpdate = $WAUConfig.WAU_DisableAutoUpdate
|
||||||
|
#If yes then check WAU update if System
|
||||||
if ($WAUDisableAutoUpdate -eq 1) {
|
if ($WAUDisableAutoUpdate -eq 1) {
|
||||||
Write-Log "WAU AutoUpdate is Disabled." "Grey"
|
Write-Log "WAU AutoUpdate is Disabled." "Grey"
|
||||||
}
|
}
|
||||||
|
@ -70,10 +70,8 @@ if (Test-Network) {
|
||||||
Write-Log "WAU is up to date." "Green"
|
Write-Log "WAU is up to date." "Green"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($IsSystem) {
|
#Get External ListPath if System
|
||||||
#Get External ListPath
|
|
||||||
if ($WAUConfig.WAU_ListPath) {
|
if ($WAUConfig.WAU_ListPath) {
|
||||||
Write-Log "WAU uses External Lists from: $($WAUConfig.WAU_ListPath)"
|
Write-Log "WAU uses External Lists from: $($WAUConfig.WAU_ListPath)"
|
||||||
$NewList = Test-ListPath $WAUConfig.WAU_ListPath $WAUConfig.WAU_UseWhiteList $WAUConfig.InstallLocation
|
$NewList = Test-ListPath $WAUConfig.WAU_ListPath $WAUConfig.WAU_UseWhiteList $WAUConfig.InstallLocation
|
||||||
|
@ -90,6 +88,7 @@ if (Test-Network) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#Get White or Black list
|
#Get White or Black list
|
||||||
|
|
Loading…
Reference in New Issue