net stop w3svc net start w3svc iisreset iisreset /noforce appcmd stop site /site.name:contoso appcmd start site /site.name:contoso appcmd list request appcmd add backup appcmd list backups appcmd restore backup %WinDir%\system32\inetsrv\appcmd.exe add backup "" appcmd.exe delete backup "" New-NetFirewallRule -DisplayName "ICMP block" -Direction Inbound -Protocol icmp4 -Action Block Copy-NetFirewallRule -DisplayName "Require Outbound Authentication" -NewName "Alternate Require Outbound Authentication" Enter-PSSession -ComputerName New-WebBinding -Name '' -IPAddress * -Port 443 -Protocol https (Get-Website -Name '').bindings.Collection New-SelfSignedCertificate -CertStoreLocation '' -DnsName '' $certPath = 'Cert:<\LocalMachine\My\> CEC247<...>CCC4' $providerPath = 'IIS:\SSLBindings\0.0.0.0!443' Get-Item $certPath | New-Item $providerPath New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader "*.contoso.com" Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter "system.webServer/security/requestFiltering" -name "removeServerHeader" -value "True"