I tried this and got an error. I can set redirects on directories without any problems. What syntax am I missing?
%systemroot%\system32\inetsrv\APPCMD set config "Autodiscover Redirect/autodiscover/autodiscover.xml" /section:httpredirect -enabled:true -destination:https://blahblah/autodiscover/autodiscover.xml -exactDestination:true -childonly:false -httpResponseStatus:Permanent
Returns error:
ERROR ( hresult:80070003, message:Failed to commit configuration changes.
The system cannot find the path specified.