title: Windows Server Permissions: What permission changes are needed to run 'sqlcmd' through IUSR?
body: <p>A little background: I need to invoke sqlcmd to remotely run .sql files via PHP. I am trying to use this function call: <code>exec("sqlcmd -?", $second);</code> There is zero output after running this command. Running this command under my current user works fine.</p>
  
  <p>PHP runs under IUSR according to PHP's <code>get_current_user();</code> function so it would be logical to change the permissions on sqlcmd to allow PHP to run sqlcmd (I give full permissions temporarily just for testing):</p>
  
  <p><img src="https://i.stack.imgur.com/WIlA6.png" alt="enter image description here"></p>
  
  <p>Then I retest the PHP script and again no output. I decide to restart IIS. Still no output.</p>
  
  <p>What permissions are needed to run sqlcmd under IUSR?</p>