Question : Has Microsoft recently restricted execution of SCHTASKS?

I cannot execute SCHTASKS from a Web Server (which runs as user SYSTEM). It has worked quite well for many many months, until this past weekend when it just "stopped working." I'm wondering if a recently released patch might have mucked things up.

I'ved opened this same problem in the PHP, Web Server, and Windows XP groups if you want to read more details:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Windows/Q_23366843.html

Also, instead of banging my head against a wall with this, I'll also award points to anyone who might have an alternate method of getting a list of scheduled tasks to display in a web page (and also to run a scheduled task from the click of a button on a web page). I've checked WMI, but it uses win32 API, which I'm pretty sure can only access tasks scheduled with AT. Is there any other way besides SCHTASKS to access tasks scheduled with the Scheduled Tasks Wizard?

Answer : Has Microsoft recently restricted execution of SCHTASKS?

Although not the solution I was hoping for, I was able to fix the problem. It seems to be a permissions thing with Apache. I haven't ever experienced the problem until I used Apache 2.2.8, and then.. only after a period of time while it was indeed working. Nevertheless, when I changed the Apache service to run as a user in the Administrators group rather than as the SYSTEM user, everything started to work again after restarting Apache.

I found the solution in another forum and ultimately here: http://www.php.net/manual/en/ref.exec.php#74897

Although it's in the PHP doc comments, it's not a PHP problem at all. As I said in earlier posts, SCHTASKS didn't work in perl cgi, batch, or VB script either.
Random Solutions  
 
programming4us programming4us