thankgodfortektips
Programmer
Hi All,
I have been having great problems with creating sites automatically... I am trying to use stsadm.exe but it is not working.
I have change the code to just return stsadm results to a txt file, and I am getting a 'access denied' error. The code I am using is as below.
************************************
Set Executor = Server.CreateObject("ASPExec.Execute")
'"C:\Progra~1\Common~1\Micros~1\webser~1\60\BIN\stsadm.exe >> c:\temp\StsInfo.txt"
Executor.Application = "cmd /c C:\Progra~1\Common~1\Micros~1\webser~1\60\BIN\stsadm.exe >> c:\temp\StsInfo.txt"
Executor.Application = "cmd /c C:\TEMP\SITE.BAT"
Executor.Parameters = ""
strResult = Executor.ExecuteWinApp
Response.Write "<pre>" & strResult & "</pre>"
************************************
I am running the code from an asp page, which is using the Iuser_machinename account.
If anyone can tell me which permission I need to change to get this to work, I would be very grateful!
Thanks in advance
I have been having great problems with creating sites automatically... I am trying to use stsadm.exe but it is not working.
I have change the code to just return stsadm results to a txt file, and I am getting a 'access denied' error. The code I am using is as below.
************************************
Set Executor = Server.CreateObject("ASPExec.Execute")
'"C:\Progra~1\Common~1\Micros~1\webser~1\60\BIN\stsadm.exe >> c:\temp\StsInfo.txt"
Executor.Application = "cmd /c C:\Progra~1\Common~1\Micros~1\webser~1\60\BIN\stsadm.exe >> c:\temp\StsInfo.txt"
Executor.Application = "cmd /c C:\TEMP\SITE.BAT"
Executor.Parameters = ""
strResult = Executor.ExecuteWinApp
Response.Write "<pre>" & strResult & "</pre>"
************************************
I am running the code from an asp page, which is using the Iuser_machinename account.
If anyone can tell me which permission I need to change to get this to work, I would be very grateful!
Thanks in advance