Remove Messageclass from exchange server 2016

Tony Mu 241 Reputation points
2021-04-08T13:09:25.253+00:00

Hi Guys
I think through this link: https://eightwone.com/2013/05/16/removing-messages-by-message-class-from-mailbox/, to remove exchange 2016 inside for the IPM. Note. EnterpriseVault. Shortcut ", but the script in my exchange 2016 cannot run, how should I modify the script, thanks

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
522 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,431 Reputation points
    2021-04-09T00:09:33.183+00:00

    Because its a script from an untrusted source (which is basically anything that you didn't create yourself) you will need to probably unblock it (right click the script see https://social.technet.microsoft.com/wiki/contents/articles/38496.unblock-downloaded-powershell-scripts.aspx ) and potential change your execution policy https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy.

    Its important when you post something to always include the actual error (drop in a screen shot if that is easier) that assists anybody trying to help