通过appcmd在DefaultAppPool上将`Load User Profile`设置为false [英] Setting `Load User Profile` to false on DefaultAppPool via appcmd

查看:287
本文介绍了通过appcmd在DefaultAppPool上将`Load User Profile`设置为false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有appcmd用于通过appcmd在IIS7上的 DefaultAppPool 上将加载用户配置文件设置为false?

Is there an appcmd for setting Load User Profile to false on DefaultAppPool on IIS7 via appcmd?

我已经尝试过这个

%systemroot%\system32\inetsrv\appcmd set config -section:applicationPools /[name='DefaultAppPool'].processModel.loadUserProfile:false

但这仅为defualt App Pool设置,并且不会更改名为

But this only sets it for the defualt App Pool and doesnt change the main setting called "

Set Application pool defaults..."


推荐答案

您可以使用以下方法执行此操作:

You can do this with the following:

c:\windows\system32\inetsrv\appcmd.exe set config -section:applicationPools "/[name='appPoolNameGoesHere'].processModel.loadUserProfile:false"

c:\windows\system32\inetsrv\appcmd.exe set config -section:applicationPools "/[name='appPoolNameGoesHere'].processModel.loadUserProfile:true"

这篇关于通过appcmd在DefaultAppPool上将`Load User Profile`设置为false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆