title: Set mailroot directories for IIS SMTP
body: <p>Using IIS 7.5 on Windows Server 2008 R2</p>
  
  <p>I need to change the default location for ALL SMTP directories (default locations shown below):</p>
  
  <pre><code>C:\inetpub\mailroot\Badmail
  C:\inetpub\mailroot\Drop
  C:\inetpub\mailroot\Pickup
  C:\inetpub\mailroot\Queue
  </code></pre>
  
  <p>to the following:</p>
  
  <pre><code>D:\smtp\badmail
  D:\smtp\drop
  D:\smtp\pickup
  D:\smtp\queue
  </code></pre>
  
  <p>The ONLY directory which is configurable via Start -> Administrative Tools -> Internet Information Services IIS (6.0) Manager is the "Badmail" directory -- a new directory can be entered directly using the IIS (6.0) Manager.</p>
  
  <p>No other option is available for the other 3 directories.</p>
  
  <p>Is there any way to change these directories WITHOUT:
  a) Having to install adsutil.vbs?</p>
  
  <p>Is it possible to change these via Powershell?</p>
  
  <p>Did I miss something or some other utility that can do this?</p>
  
  <p>Any help/advice would be appreciated.</p>
  
  <p>Thanks in advance</p>