G
GP
Hi,
I'm having trouble running a bat file from an ASP page.
It works fine on Windows 2003 Std x32 server but fails now we have upgraded
to the x64 edition
In the ASP we are trying to run the following
Set oWSH= Server.CreateObject("WScript.Shell")
errmsg = oWSH.Run("d:\\scripts\\copyiissettings.bat 10.0.0.156",0,True)
set oWSH = nothing
The errmsg is returning 1 (not very helpful)
In the BAT file we are running the following command:
cscript.exe c:\windows\system32\iiscnfg.vbs /copy /ts %1 /tu machineusername
/tp machinepassword
I am sure the permissions are setup correctly in IIS as both the Application
Pool and Authenticated Anonymous User are set as the Administrator. We are
also running IIS with he following flag enabled Enable32BitAppOnWin64=True
I can only think maybe there is a problem being related to the fact we are
running x64 and perhaps there is a registry setting or group policy setting
i need to change?
Thanks,
Greg.
I'm having trouble running a bat file from an ASP page.
It works fine on Windows 2003 Std x32 server but fails now we have upgraded
to the x64 edition
In the ASP we are trying to run the following
Set oWSH= Server.CreateObject("WScript.Shell")
errmsg = oWSH.Run("d:\\scripts\\copyiissettings.bat 10.0.0.156",0,True)
set oWSH = nothing
The errmsg is returning 1 (not very helpful)
In the BAT file we are running the following command:
cscript.exe c:\windows\system32\iiscnfg.vbs /copy /ts %1 /tu machineusername
/tp machinepassword
I am sure the permissions are setup correctly in IIS as both the Application
Pool and Authenticated Anonymous User are set as the Administrator. We are
also running IIS with he following flag enabled Enable32BitAppOnWin64=True
I can only think maybe there is a problem being related to the fact we are
running x64 and perhaps there is a registry setting or group policy setting
i need to change?
Thanks,
Greg.