Automation server cannot create object ERROR
-
function callreg() { alert("hello"); var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD"); } This script is correctly working in local system. When i access this with remote system, it shows an error automation server cannot create object. Can any one help me to solve it??? Thanks in advance
Sutheesh
-
function callreg() { alert("hello"); var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD"); } This script is correctly working in local system. When i access this with remote system, it shows an error automation server cannot create object. Can any one help me to solve it??? Thanks in advance
Sutheesh
Sutheesh wrote:
var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD");
Calling ActiveXObjects in IE are now critical. Microsoft has given many security updates to do so. You problem may be WScript.Shell is not available in your machine or it is not a trustable ActiveXObject in your machine. I had the same problem, when I tried to use Excel object. Later on, I used my own VB ActiveX to my need.
[Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot
-
function callreg() { alert("hello"); var shl = new ActiveXObject("WScript.Shell"); shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2104", 0, "REG_DWORD"); } This script is correctly working in local system. When i access this with remote system, it shows an error automation server cannot create object. Can any one help me to solve it??? Thanks in advance
Sutheesh
Hi, Try to save your HTML file as hta extention. It may be solve your problem. Just try and see.
Thanks, Sun Rays To get something you must have to try once. My Articles
-
Hi, Try to save your HTML file as hta extention. It may be solve your problem. Just try and see.
Thanks, Sun Rays To get something you must have to try once. My Articles