Accessing Win32 remote scheduled tasks

T

TonyV

Hey all, I'm trying to list the scheduled tasks on Windows servers. I
snagged the Win32::TaskScheduler package, and quickly wrote up the
following code:

my $scheduler=Win32::TaskScheduler->New();
$scheduler->SetTargetComputer("\\\\" . $computer);
my @jobs = $scheduler->Enum();

Locally, logged in as myself, it works like a charm. However, if I
put that in a script on an IIS server we're running, it bombs out on
the SetTargetComputer line. I'm pretty sure the problem is with the
permissions. IIS runs scripts as the local IUSR_(servername) account,
which doesn't have access to resources on remote servers.

I'm using integrated Windows authentication in IIS. Ideally, I
suppose I'd like the script to run with the same permissions as the
user who is accessing the site, so that it would have access to
whatever remote resources the user pulling up the web page has.

Does anyone know if this is possible? If not, does anyone know of a
workaround to accessing remote resources that doesn't involve changing
the permissions on the remote server?
 
T

TonyV

Does anyone know if this is possible? If not, does anyone know of a
workaround to accessing remote resources that doesn't involve changing
the permissions on the remote server?

Crap, this might help. I'm using ActiveState Perl 5.8.8, build 820
[274739], and the server is IIS 6 running on a Windows 2003 box.
(I've got a really nasty cold right now, which is my excuse for not
posting this in the original message.)
 

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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top