Hello,
I am having difficulties removing .xml from my block file types from PowerShell. I can log into my exchange server through powershell without problems. Listing the allowed file types and blocked file types work. I can add the .xml to the allowed file types. That being said now i have .xml added to both my allowed file types and blocked file types.
Set-OwaMailboxPolicy -Identity Default -AllowedFileTypes '.xml' This is the command i used to add it to allowed file types.
These are the commands that I tried to use to remove the file extension from the list.
Remove-OwaMailboxPolicy -Identity Default -BlockedFileTypes '.xml'
(Remove-OwaMailboxPolicy).BlockedFileTypes = 'xml'
Each time I run the above commands i get:
A positional parameter cannot be found that accepts argument '-BlockedFileTypes'.
+ CategoryInfo : InvalidArgument: (:) [Remove-OwaMailboxPolicy], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Remove-OwaMailboxPolicy
Any help would be greatly appreciated.