test
parent
a8cadd296a
commit
43eb83d061
|
@ -219,28 +219,6 @@ if (Test-Network) {
|
||||||
$Log | out-file -filepath $LogFile -Append
|
$Log | out-file -filepath $LogFile -Append
|
||||||
}
|
}
|
||||||
|
|
||||||
#Ask for user if configured
|
|
||||||
if ($WAUConfig.WAU_UserApproval -eq 1){
|
|
||||||
Write-Log "User Approval feature enabled."
|
|
||||||
#Check for approved tag
|
|
||||||
$WAUNotifApproved = "$WorkingDir/Config/NotifApproved.txt"
|
|
||||||
|
|
||||||
if (!(Test-Path $WAUNotifApproved)) {
|
|
||||||
$UserApprovalReturn = Invoke-UserApproval $outdated
|
|
||||||
if ($UserApprovalReturn -eq 0){
|
|
||||||
Write-Log "-> User approval requested. Waiting for user to approve available updates..."
|
|
||||||
#Closing job, waiting for user approval
|
|
||||||
Exit 0
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
Write-log "-> No update to request to user."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Write-Log "-> User approved notification."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#Count good update installations
|
#Count good update installations
|
||||||
$Script:InstallOK = 0
|
$Script:InstallOK = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue