Removing .xml from Blocked File Types

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. 

April 2nd, 2015 4:06pm

Hi,

There is no BlockedFileTypes parameter under Remove-OwaMailboxPolicy cmdlet.

To remove .xml from Blocked File Types, please use the following command.

Set-OwaMailboxPolicy -Identity default -BlockedFileTypes @{remove='.xml'}

By the way, we usually use this command to add file type to allowed/blocked type list.

Set-OwaMailboxPolicy -Identity default -AllowedFileTypes @{add='.xml'}

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2015 11:10pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics