Kaseya Community

Read registry values issue

  • I'm trying to write a simple script to read a registry value and write it to a text document. For some reason the procedure writes "ECHO is on." to the text doc rather than the value. Here is the procedure:

    getVariable("Registry Value", "HKEY_LOCAL_MACHINE\SOFTWARE\Keys\Value", "version", "All Windows Operating Systems", "Continue on fail")

    writeTextToFile(#version#, "C:\test\text.txt", false, "All Operating Systems", "Halt of Fail")

    The only thing I can think is I'm missing something in the syntax of the Registry value. Any help is appreciated!

  • Hi  

    Can you provide us a screenshot of the registry value you are trying to pull so we can verify the syntax?