Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

StsAdm.exe Access Denied

Status
Not open for further replies.

thankgodfortektips

Programmer
Dec 20, 2005
95
KY
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

 
use the object model to create sites automatically

and if you want to go further with this idea: there's the runas command which allows your to run stuff under other users context.
Or run you app in an app pool that runs under a domain account with the correct permissions

kind regards


//Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top