Remove Messageclass from exchange server 2016

Tony Mu 361 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 | Exchange Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Glen Scales 4,446 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.