Home > Exchange, Exchange 2010, Microsoft, PowerShell, Scripts > Retention Policies not applying? Update them then!

Retention Policies not applying? Update them then!


 

When applying a new Retention Policy (or tag) in Exchange 2010 SP1 you may wonder why it doesn’t apply immediately.

 

In short, Exchange is configured by default to cycle all mailboxes in a 24 hour period. This can be seen (and therefore changed) by looking at the “ManagedFolderWorkCycle” attribute against each Mailbox Server;

 

get-mailboxserver | select-object Name,ManagedFolderWorkCycle

 

(obviously, set-mailboxserver to set it – though I believe it only takes day’s as its input value)

 

If this isn’t good enough – then you can force this on an individual mailbox (or all if you wanted) using the command;

 

start-managedfolderassistant USERID

 

(or get-mailbox | start-managedfolderassistant for all)

 

Happy PowerShelling Smile

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: