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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AspExec to run shutdown.exe

Status
Not open for further replies.

rrodichev

Programmer
Joined
Oct 21, 2000
Messages
2
Location
US
Hello!
I have a server side vbscript on my qebpage:

Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "c:\winnt\system32\shutdown.exe"
Executor.Parameters = "\\PCNAME /R /Y /T:120"
strResult = Executor.ExecuteDosApp
Response.Write(strResult)

And this is what I get:

Shutdown:\\PCNAME AdjustTokenPrivileges enable failed.

I suppose ASPExec doesn't have enoguh privilages to run remote shutdown command at all. Does anyone know how to fix this? [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top