通过批处理文件修改IIS应用程序池的Process Model
2013-04-17 10:53
218 查看
原文出处: /article/11592413.html
Change IIS Application Pool Identity Type
@echo off
if "%1" == "" goto :ALert
if "%1" == "/?" goto :ALert
@set ProcessModelIndentyType=%~1
echo ProcessModelIndentyType=%ProcessModelIndentyType%
echo========================================================
echo Change the application pool process model identity type
echo========================================================
%windir%/system32/inetsrv/appcmd.exe set AppPool DefaultAppPool -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool "ASP.NET v4.0" -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool "ASP.NET v4.0 Classic" -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool "Classic .NET AppPool" -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool NexusIntegratedAppPool -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool NexusIsapiAppPool -processModel.identityType:%ProcessModelIndentyType%
Echo restart the IIS service
iisreset
goto :EOF
:ALert
Echo " Pleae input you AppPool name"
Echo " Format:"
Echo " %windir%/system32/inetsrv/appcmd.exe set AppPool <AppPoolName> -processModel.identityType:<ProcessModelIndentyType>"
Echo " ProcessModelIndentyType should be in follows:"
Echo ----ApplicationPoolIdentity
Echo ----NetworkService
Echo ----LocalService
Echo ----LocalSystem
goto :EOF
:EOF
stop
Change IIS Application Pool Identity Type
@echo off
if "%1" == "" goto :ALert
if "%1" == "/?" goto :ALert
@set ProcessModelIndentyType=%~1
echo ProcessModelIndentyType=%ProcessModelIndentyType%
echo========================================================
echo Change the application pool process model identity type
echo========================================================
%windir%/system32/inetsrv/appcmd.exe set AppPool DefaultAppPool -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool "ASP.NET v4.0" -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool "ASP.NET v4.0 Classic" -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool "Classic .NET AppPool" -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool NexusIntegratedAppPool -processModel.identityType:%ProcessModelIndentyType%
%windir%/system32/inetsrv/appcmd.exe set AppPool NexusIsapiAppPool -processModel.identityType:%ProcessModelIndentyType%
Echo restart the IIS service
iisreset
goto :EOF
:ALert
Echo " Pleae input you AppPool name"
Echo " Format:"
Echo " %windir%/system32/inetsrv/appcmd.exe set AppPool <AppPoolName> -processModel.identityType:<ProcessModelIndentyType>"
Echo " ProcessModelIndentyType should be in follows:"
Echo ----ApplicationPoolIdentity
Echo ----NetworkService
Echo ----LocalService
Echo ----LocalSystem
goto :EOF
:EOF
stop
相关文章推荐
- DLL文件基本原理及修改方法和通过改DLL来美化系统图标
- 在windows cgywinportable上,通过执行linux命令,批量修改文件名称。
- 如何通过批处理将子文件夹内的文件移动到当前文件夹
- 通过反射该变WCF的Endpoint的行为,而无需修改客户端配置文件
- linux通过sed 修改文件中某一行的内容
- OJ 调试技巧:VS2010 中 通过设置编译参数定义宏,无需修改源文件重定向标准输入输出
- 详解Android通过修改配置文件设置wifi密码
- 通过修改.htaccess文件设置域名的别名自动跳转
- window中对ubuntu通过samba共享出来的文件没有写权限/无法修改
- Windows下用命令行修改IP详解,附批处理文件
- 通过批处理文件完成tomcat+jre绿色配置
- android中通过代码实现文件权限修改(chmod)
- Mybatis Generator的model生成中文注释,支持oracle和mysql(通过修改源码的方式来实现)
- window中对ubuntu通过samba共享出来的文件没有写权限/无法修改
- 通过批处理命令 修改Windows 7 无线网络地址
- 查看文件服务器修改写删除文件的记录设置方法------通过设置文件夹审核策略
- sftp通过秘钥上传,修改文件
- Core Data修改了Data Model文件后报错
- 通过修改WebConfig文件自定义Web后台数据库