View Complete Thread
  • Re: Getting WScript.Shell to Run on IIS Server

    Dec 02, 2013 06:36 PM|billbell52|LINK

    Jeff, thanks for the reply.  I am not all that familiar with IIS.  On the test Windows 7 PC I have a standard IIS install the website is 'Default Web Site' and the application pool it uses is 'DefaultAppPool'.  It is set to .net 4.0 and the identity is 'ApplicationPoolIdentity'.  When you say "add proper permissions for the proper account" how do you do that?  This internal application is for a small company so I am not overly worried about a security hole.  Right now I am concerned about getting it working.  I simplified my PHP to 2 lines.

    		$WshShell1 = new COM("WScript.Shell");
    		$oExec1 = $WshShell1->Run('"C:\Program Files\Microsoft Office\Office14\Winword.exe"', 7, true);

    Wscript php