You must have the WebAdministration snappin or module loaded (this should come as part of the IIS install) then simply:
add-webconfigurationproperty //staticContent -name collection -value @{fileExtension='.otf'; mimeType='application/octet-stream'}
Subscribe to:
Post Comments (Atom)
Thanks for this. One thing to look out for is that the working directory hasn't been changed to a sub-directory of IIS:\
ReplyDeleteI tried to run this command after previous scripts had done a "cd IIS:\appPools" and it did not work. cd IIS:\ fixed it.