Stop Start Services from asp

N

Nathan Henderson

I am trying to stop and start the ftp service from an asp page using the
iuser account.
my code is simple: shell.run "net start msftpsvc",0,true.
ASP page returns no errors but nothing happens. code works in .vbs but not
from the webserver (IIS6).
Can someone tell me how to do this? I would also like to edit the registry
if i can.

Thanx
 
R

Ray at

Your IUSR account would need elevated permissions to start and stop
services, which is typically ill-advised. Give your IUSR account admin
rights on your server, see if that works. If it does, your code is fine.
At that point, I would remove the IUSR account from that group and either
create a new "iusr" account just for this page, use authentication instead
of anonymous access for that page, or use a group policy to give the IUSR
rights to start and stop services without the need for being an
administrator.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top