Fixed issue when gathering xml config file.
parent
50399cd84e
commit
99793334ab
|
@ -231,7 +231,7 @@ function Get-ExcludedApps{
|
||||||
function Start-WAUUpdateCheck{
|
function Start-WAUUpdateCheck{
|
||||||
#Get AutoUpdate status
|
#Get AutoUpdate status
|
||||||
[xml]$UpdateStatus = Get-Content "$WorkingDir\config\config.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
[xml]$UpdateStatus = Get-Content "$WorkingDir\config\config.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
||||||
$AutoUpdateStatus = $UpdateStatus.app.autoupdate
|
$AutoUpdateStatus = $UpdateStatus.app.WAUautoupdate
|
||||||
|
|
||||||
#Check if AutoUpdate is enabled
|
#Check if AutoUpdate is enabled
|
||||||
if ($AutoUpdateStatus -eq $false){
|
if ($AutoUpdateStatus -eq $false){
|
||||||
|
|
Loading…
Reference in New Issue