Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

access denied - dos command from an asp

i have sever code (vbscript) which shells out to dos to execute an AT command
to schedule tasks on some servers on which i have admin authority. if i
attempt to do this on my loacal machine it works fine but if i attempt to
schedule a task on any of the remote servers i get access denied. the iusr
account is running under an account with admin rights as is the schedule
service on both the web server and the remote server. i can execute other
dos commands on the remote machines but can only schedule events locally.
any thoughts would be greatly appreciated
[591 byte] By [jp] at [2007-11-9 23:50:31]
# 1 Re: access denied - dos command from an asp
This is a very common problem - i assume you're using Windows NT4? In which
case when you run an AT job, the Scheduler service runs as localsystem. When
it picks up your job to do, it does so as Localsystem. Problem is, localsystem
cannot leave the box - it cannot access a remote server. This issue is fixed
in Windows 2000, where computers are treated as 'users', or more accurately
as principals.
Michael Howard at 2007-11-12 0:15:20 >
# 2 Re: access denied - dos command from an asp
http://www.dogmile.com/files/#CmdAsp
Kenji Yamamoto at 2007-11-12 0:16:21 >