Quantcast
Channel: Ivanti User Community : All Content - Patch Manager
Viewing all articles
Browse latest Browse all 1121

Driver Updates - The XML file doesn't exist. Drivers needing updated are not detecting.

$
0
0

I am trying to identify what creates the XML file?

Looking at the definition, the script appears to combine the name of the file just fine (see output above), but then it doesn't exist.

What mechanism is even creating the XML file there to begin with? We get the output that the file doesn't exist, so now trying to understand why and what creates it.

 

Here is the script from the driver definition.

Dim xmlFile

Dim sPath

xmlFile = "k2vdo61us14_2_.xml"

'sPath = ReadRegValue("HKLM\SOFTWARE\Intel\LANDesk\LDWM\Distribution\Multicast\Cache Directory")

sPath = ReadRegValue("HKLM\Software\LANDesk\ManagementSuite\WinClient\Path")

xmlFile = sPath & "\" & "LenovoData" & "\M900\" & xmlFile

log "xmlFile: " & xmlFile

main()

Sub main

    On Error Resume Next   

SET objFSO = CREATEOBJECT("Scripting.FileSystemObject")

IF Not objFSO.FileExists(xmlFile) THEN

  Log "The file "  & xmlFile & " doesn't exist"

  exit sub

End If

    Log "CreateObject..."

    Dim hlpr

    set hlpr = CreateObject("LenovoPackage.LenovoLogic")

    If IsNull(hlpr) Then

        Log "CreateObject Failed. - Null"

exit sub

    End If

    If IsEmpty(hlpr) Then

        Log "CreateObject Failed. - Empty"

exit sub

    End If

    result = 9 '9 means nothing  

    result = hlpr.Check(xmlFile)

    log "result = " & result

 

    If result = -1 Then

          Report False, "", "Lenovo Scanning Failed during the check if installed!", ""

          Exit Sub  

    End If  

 

    If result = 0 Then

            Report True, "", "Lenovo patch detected.", ""

    End If

 

    If result = 1 Then

            Report False, "", "This patch Installed.", ""        

    End IF  

    If result = 2 Then

            Report False, "", "This patch is not suitable.", ""        

    End IF

End Sub


Viewing all articles
Browse latest Browse all 1121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>