I am glad to see this feature has arrived in General Availability. I get asked, “James, is there a way to assign Teams policies to a group” regularly and I am happy to say “Yes, there is!”. The Teams PowerShell Module has been updated to version 1.1.4 which now has the policy assignment via group cmdlets available (release notes are available here).
The Cmdlets for using policy assignment via group are:
If you do not see these cmdlets when you are connected to Teams PowerShell, then you may need to update your version of the module. To do that open PowerShell as administrator and type (or copy) the following:
Once you have the up to date version of the module installed you will be able to use the cmdlets above, happy assigning policies via groups! Next post will be around Policy Packages vs Policies via groups.
The exchange team have recently blogged about the new RecovableItems experience in the public preview of the Exchange Admin center, I use EAC on a daily basis and thought I would take a look at this new feature.
I have used this feature numerous times via PowerShell and the Get-RecoverableItems cmdlet. Most don’t know this exists as you need the “Mailbox Import Export” role to be able to use the cmdlet. Default roles like Organization Management do not have access, so you would need to add this to the role group.
The New Exchange admin experience can be accessed via https://admin.exchange.microsoft.com and logging in with your tenant details. Once you are logged in, you can go to Recipients, Mailboxes and select the user you would like to recover mail items for. then click recover deleted items
Earlier on I had deleted a mail item from Adele’s mailbox called urgent. I then used the following search criteria:
Past 7 days (as Adele had deleted it earlier)
Subject line search of “Urgent” (Adele had let us know the subject contained the word urgent)
The output we were looking for
Now that I have found the mail I am looking for, I am able to restore easily by selected the item and clicking Recover deleted Items.
Now, what if I wanted to use Powershell to find the same information I have using the GUI? The cmdlet to use is Get-RecoverableItems. The cmdlet allows for easy searching of the recoverable items as I only need to run the following command:
Once I have found the item I would like to restore I can run:
The command then goes off and recovers the items I have asked it to. Just as the GUI would have done.
The new GUI interface for RecoverableItems is helpful in recovering items from a single mailbox, but when you need to recover items to more than one mailbox the Powershell cmdlet is still the way to do it. I look forward to testing some more of the newer features out of the new Exchange Admin Center. Thanks for reading!