title: How to redirect iisstart.htm via command line?
body: <p>I'm running iis10 on windows server 2016.
  I need to redirect iisstart.htm (default iis landing page) to another url.
  Is there a way to do it with command line? 
  Preferably powershell / appcmd.</p>
  
  <p>Closest thing I found was this command but it's not what I need cause it redirects any request to this url, and I need to redirect only if no specific web application was requested in the url.</p>
  
  <p><code>Set-WebConfiguration system.webServer/httpRedirect "IIS:\sites\Default Web Site" -Value @{enabled="true";destination="domain.com";exactDestination="true";httpResponseStatus="Permanent"}</code></p>
  
  <p><img src="https://dilshansaminda.files.wordpress.com/2012/06/image7.png" alt="iisstart.htm redirect"></p>