Last active
December 16, 2016 10:54
-
-
Save maestropanel2/480efe7361102a02cd1d2cf28cf84409 to your computer and use it in GitHub Desktop.
mailenable.webmail.fix.bat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='PageHandlerFactory-ISAPI-2.0',path='*.aspx',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv2.0,bitness32',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='PageHandlerFactory-ISAPI-2.0-64',path='*.aspx',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv2.0,bitness64',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='PageHandlerFactory-ISAPI-4.0_64bit',path='*.aspx',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv4.0,bitness64',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='PageHandlerFactory-Integrated-4.0',path='*.aspx',verb='GET,HEAD,POST,DEBUG',type='System.Web.UI.PageHandlerFactory',preCondition='integratedMode,runtimeVersionv4.0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='PageHandlerFactory-ISAPI-4.0_32bit',path='*.aspx',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv4.0,bitness32',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='AXD-ISAPI-2.0',path='*.axd',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv2.0,bitness32',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='AXD-ISAPI-2.0-64',path='*.axd',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv2.0,bitness64',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='AXD-ISAPI-4.0_64bit',path='*.axd',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv4.0,bitness64',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.webServer/handlers /+"[name='AXD-ISAPI-4.0_32bit',path='*.axd',verb='GET,HEAD,POST,DEBUG',modules='IsapiModule',scriptProcessor='%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll',preCondition='classicMode,runtimeVersionv4.0,bitness32',responseBufferLimit='0']" | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.web/trust /level:"Full" /clr:2.0 /commit:webroot | |
C:\Windows\SysWOW64\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.web/trust /level:"Full" /clr:2.0 /commit:webroot | |
C:\Windows\System32\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.web/trust /level:"Full" /clr:4.0 /commit:webroot | |
C:\Windows\SysWOW64\inetsrv\appcmd.exe set config "MailEnable WebMail" -section:system.web/trust /level:"Full" /clr:4.0 /commit:webroot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Web services handlers for asmx
appcmd.exe set config "prot.com" -section:system.webServer/handlers /+"[name='WebServiceHandlerFactory-Integrated-4.0',path='*.asmx',verb='GET,HEAD,POST,DEBUG',type='System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35',preCondition='integratedMode,runtimeVersionv4.0']"
appcmd.exe set config "prot.com" -section:system.webServer/handlers /+"[name='WebServiceHandlerFactory-Integrated',path='*.asmx',verb='GET,HEAD,POST,DEBUG',type='System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a',preCondition='integratedMode,runtimeVersionv2.0']"