Kaseya Community

Failed IF due Registry Query Failed

  • Hi there, I have a script that runs on 100 machines and on 5 of them if fails the IF statement with the following error.

    Failed IF due Registry Query Failed

    Any idea's? Is the most likely cause some sort of secuirty / anti spyware package (Windows defender) stopping it from running?

    Thanks in advance.



    Mark


    Legacy Forum Name: Failed IF due Registry Query Failed,
    Legacy Posted By Username: mallbutt
  • Does the registry entry exist on those machines?

    God Bless,
    Marty


    Legacy Forum Name: Technical Issues,
    Legacy Posted By Username: MissingLink
  • No it doesn't actually, but why should that matter?

    Legacy Forum Name: Technical Issues,
    Legacy Posted By Username: mallbutt
  • Are doing a Check Registry Value or Test Registry Key?

    God Bless,
    Marty


    Legacy Forum Name: Technical Issues,
    Legacy Posted By Username: MissingLink
  • Its a Check Registry Value, is that the problem then?

    Legacy Forum Name: Technical Issues,
    Legacy Posted By Username: mallbutt
  • Help....... :-?

    Legacy Forum Name: Technical Issues,
    Legacy Posted By Username: mallbutt
  • If you do "Check Registry Value" then the value has to exist

    (eg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony would need to exist but a key such as HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\perf1 would not need to)

    But "Test Registry Key" the value dosent have to exist.

    God Bless,
    Marty



    Legacy Forum Name: Technical Issues,
    Legacy Posted By Username: MissingLink