I am trying to make a site that will execute either a VBS file for a .BAT file on the server when a user clicks a link by using a WScript.Shell object. The problem is i keep getting permission denied whenever i try using the oshell.run command. I have tried almost everything and determined it has to be soemthing within the IIS server permissions. All the files (except the ASP page) work correctly when executed manually.
1) I used %comspec% /c to make sure a window was never opened for user input (found similar problems with this solution).
2) I have put the link, and both executable files within a folder with exacutable permissions.
3) I have given all users executable permissions.
I have read in alot of places that i should change the usr_computername account to be able to run executables. I cant find this account anywhere except locally. Locally we tried giving all account permissions and that didnt work. We use NT Authentication anyway so this shouldnt matter.
I dont know if anyone would have an answer for this problem but i figure i would ask.
On a side note - we are creating a helpdesk site. to get users to stop using e-mail and start using the helpdesk we need to make it easier for them to use the helpdesk than outlook. Everything else is working fine but if someone wants to send us a screenshot then its easier to printscreen+paste into outlook than upload to a server. Since this in an internal site, by using visual basic scripts we have access to all of the computers and can run command line arguments on them with PSExec.
So my idea was to make a vbs file that would check to see if a user has Gadwin Printscreen installed. If it didnt have it then it would install it. It would check the process list for printscreen.exe and psexec.exe and make sure they were not running, if they were they would kill the process. Once all of that is done we PSExec into the users computer (who clicked a "take screeny" link on the helpdesk site) and have gadwin open, take a screenshot, save it to a network directory, insert a file path and the problem id into a database, then close without the user seeing any of this happen. As i said everything works manually so last i need is to let ASP run executables 
|