Stop and Start IIS from the command line

net stop was
net start w3svc

IIS URL Rewrite rules to 301 redirect to https and force external content references to use https

    <rule name="Redirect everything to https:// on www domain" patternSyntax="Wildcard" stopProcessing="true">
      <match url="*" />
      <conditions logicalGrouping="MatchAny">
        <add input="{HTTP_HOST}" pattern="www.[DOMAIN].com" negate="true" />
        <add input="{HTTPS}" pattern="off" ignoreCase="true" />
      <action type="Redirect" url="https://www.[DOMAIN].com/{R:0}" redirectType="Permanent" />
    <rule name="Rewrite to secure src" preCondition="IsHTML">
      <match pattern="src=&quot;http://" />
      <action type="Rewrite" value=&quot;src="https://" />
      <preCondition name="IsHTML">
        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
Supported by