|
c: cd \Windows\System32\inetsrv
appcmd.exe ADD Backup "OWA REDIRECT BACKUP 01"
appcmd set config "default web site" -section:httpRedirect /childonly:true /enabled:true appcmd set config "default web site" -section:system.webServer/httpRedirect -destination:"https://mail.domain.com/owa"
appcmd set config "default web site/Aspnet_Client" -section:httpRedirect /enabled:false appcmd set config "default web site/Autodiscover" -section:httpRedirect /enabled:false appcmd set config "default web site/ECP" -section:httpRedirect /enabled:false appcmd set config "default web site/EWS" -section:httpRedirect /enabled:false appcmd set config "default web site/Exchange" -section:httpRedirect -commit:apphost /enabled:false appcmd set config "default web site/Exchweb" -section:httpRedirect -commit:apphost /enabled:false appcmd set config "default web site/Microsoft-Server-ActiveSync" -section:httpRedirect -commit:apphost /enabled:false appcmd set config "default web site/OAB" -section:httpRedirect /enabled:false appcmd set config "default web site/OWA" -section:httpRedirect -commit:apphost /enabled:false appcmd set config "default web site/PowerShell" -section:httpRedirect -commit:apphost /enabled:false appcmd set config "default web site/Public" -section:httpRedirect -commit:apphost /enabled:false appcmd set config "default web site/Rpc" -section:httpRedirect /enabled:false appcmd set config "default web site/RpcWithCert" -section:httpRedirect /enabled:false
appcmd set config "default web site" -section:access -sslflags:"" -commit:apphost
appcmd set config "Default Web Site/Aspnet_Client" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/Autodiscover" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/EWS" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/ECP" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/Exchange" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/Exchweb" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/Microsoft-Server-ActiveSync" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/OWA" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "default web site/PowerShell" -section:access -sslflags:"" -commit:apphost appcmd set config "default web site/OAB" -section:access -sslflags:"" -commit:apphost appcmd set config "Default Web Site/Public" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost appcmd set config "Default Web Site/Rpc" -section:access -sslFlags:Ssl -commit:apphost appcmd set config "Default Web Site/RpcWithCert" -section:access -sslFlags:Ssl,Ssl128 -commit:apphost
cacls "C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\OAB\web.config" /E /P "NT Authority\authenticated Users":R
iisreset
|