derdeniska
April 17th, 2005, 07:56 AM
Hello.
I've got the following problem.
I am using Wscript.shell object in ASP to run a bat file from my webpage.
The batch runs executable wrote on C++ which runs CreateProcessAsUser function. Now all this runs under IIS user and when I try to start some exacutable (notepad for instance) using CreateProcessAsUser I recieve the following error: "The application failed to initialize properly (0xc0000142)". Now it's quite obvious something is wrong with enviroment of IIS user, it is not an interactive user and its enviroment maybe different. Now the question is how can i make all this work? There's probably some entries in local policy i need to change to make ISS user to start process using CreateProcessAsUser().
Thanx in advance
I've got the following problem.
I am using Wscript.shell object in ASP to run a bat file from my webpage.
The batch runs executable wrote on C++ which runs CreateProcessAsUser function. Now all this runs under IIS user and when I try to start some exacutable (notepad for instance) using CreateProcessAsUser I recieve the following error: "The application failed to initialize properly (0xc0000142)". Now it's quite obvious something is wrong with enviroment of IIS user, it is not an interactive user and its enviroment maybe different. Now the question is how can i make all this work? There's probably some entries in local policy i need to change to make ISS user to start process using CreateProcessAsUser().
Thanx in advance