Within my scipt, I need to run a command to check certain criteria within the registy and execute depending on the result.
Only if the hostname is a specific server and if a specific key exsists with a specfic value do I want the .reg file to import.
Below is an example of what I want but I'm unsure if this is correct termonology and I can't find any specific examples of this on the forum. The manual states another option READVALUE but I can't tell which one is the correct command.
IF READTYPE ("HKEY_CURRENT_USER\Software\Program\Value_Name", "Value_data")
Shell "regedit /s" "\\servername\share\import.reg"
Thanks in advance for any assistance.