특정 사이트의 환경 설정값 전체 조회

appcmd.exe list config "youngsam.kr"


특정 사이트의 환경 설정값중 특정 섹션

appcmd.exe list config "youngsam.kr" /section:asp

<system.webServer>
  <asp>
    <session />
    <comPlus />
    <cache diskTemplateCacheDirectory="%SystemDrive%\inetpub\temp\ASP Compiled Templates" />
    <limits />
  </asp>
</system.webServer>



특정 사이트의 환경 설정값중 특정 섹션의 속성값

appcmd.exe list config "youngsam.kr" /section:asp /config:*

<system.webServer>
  <asp appAllowClientDebug="false" appAllowDebugging="false" errorsToNTLog="false" ..........



환경 설정값 에서 어떤 섹션이 있는지 조회

appcmd.exe list config /section:?

system.net/authenticationModules
system.web/deployment
system.web/httpModules
system.webServer/directoryBrowse
system.webServer/cgi .................



웹서버 또는 특정 사이트의 특정 섹션값 변경

appcmd.exe set config /section:asp /appAllowClientDebug:false

구성 커밋 경로 "MACHINE/WEBROOT/APPHOST"에서 "MACHINE/WEBROOT/APPHOST"의 "system.webServer/asp" 섹션에 구성 변경을 적용했습니다.


등록되어 있는 모듈 조회

appcmd.exe list config /section:system.webServer/modules

<system.webServer>
  <modules>
    <add name="HttpCacheModule" />
    <add name="StaticCompressionModule" />
    <add name="DefaultDocumentModule" />
    <add name="DirectoryListingModule" />
    <add name="ProtocolSupportModule" />
    <add name="StaticFileModule" />
    <add name="AnonymousAuthenticationModule" />
    <add name="RequestFilteringModule" />
    <add name="CustomErrorModule" />
    <add name="IsapiModule" />
    <add name="HttpLoggingModule" />
    <add name="BitrateModule" />
  </modules>
</system.webServer>



특정 모듈 추가 및 제외 [+/-]

appcmd.exe set config /section:system.webServer/modules /-[name='HttpCac
heModule']



특정 노드 또는 속성값 조회

appcmd.exe search config "youngsam.kr"

CONFIGSEARCH "MACHINE/WEBROOT/APPHOST/youngsam.kr"

2010/11/06 06:15 2010/11/06 06:15

Trackback Address :: https://youngsam.net/trackback/1407