Reading Registry on IIS server with PHP com object not working
I am trying to read a registry value on iis using the following script.
$shell = new COM("WScript.Shell") or die("Requires Windows Scripting Host"); $devenvpath=$shell->RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App\\Pathsfirefox.exe");
It doesn't work. It keeps telling me "Unable to open registry key". I am assuming this is a permissions issue but not sure. How can I get this to work.
Thanks for the help.