iis - appcmd to check a config exists? -


i can run command add custom log:

.\appcmd.exe set config -section:system.applicationhost/sites /+"[name='mywebsite'].logfile.customfields.[logfieldname='originalip',sourcename='x-forwarded-for',sourcetype='requestheader']" /commit:apphost 

what command use see if config has been set? there no appcmd.exe config -section...

try like

appcmd.exe list config -section:system.applicationhost/sites /text:* 

depending on want check for, have parse output.

for more information, run

appcmd.exe /? config 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -