I have this code below that will write a registry value to a file. I want the next line in the code to say if the registry value = 1 then write [PASSED!] if anything else write [FAILED!].
Set WshShell = WScript.CreateObject("WScript.Shell")
outfile.writeline "Append parent suffix of the primary DNS suffix setting... " & WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\UseDomainNameDevolution")
Set WshShell = WScript.CreateObject("WScript.Shell")
outfile.writeline "Append parent suffix of the primary DNS suffix setting... " & WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\UseDomainNameDevolution")