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
Post a Comment