Hello,

I was wondering if you can assist me with the following:

We are in the process of migrating user mailboxes from our on-premises Exchange to Exchange Online and we would like to create a script that runs nightly and checks for mailboxes that don't have litigation hold enabled and enables it. We have a mixture of licenses, E3 and F1, and from what I know, litigation hold can only be enabled for E3 licenses. Is there a way to filter that? I can then use the instructions found here https://www.adaxes.com/questions/1724/enabling-litigation-hold-while-provisioning-a-user for new users but again, can that be filtered per type of license?

by (20 points)

1 Answer

by (310k points)
0 votes

Hello,

You can use the Modify Exchange properties action described in the post you referenced in a Scheduled Task. To check whether a specific Office 365 license is assigned to an account, use the If PowerShell script returns true condition with the following script from our repository: https://www.adaxes.com/script-repository/check-whether-office-365-license-is-assigned-to-user-s322.htm. Finally, the Scheduled Task will look like the following: image.png

by (20 points)
0

Thank you very much for the quick response!

I will try it get back if I need any further assistance.

by (160 points)
0

The script from the repository is no longer there, is there an updated script for the If PowerShell script returns true condition?

https://www.adaxes.com/script-repository/check-whether-office-365-license-is-assigned-to-user-s322.htm

by (310k points)
0

Hello,

The script was removed as it is no longer required. There is a built-in condition allowing you to check whether certain Microsoft 365 licenses are assigned or not:

image.png

Related questions

Hey Support, Were in the process of just spinning up Adaxes 2014.1 in our environment, and I'm working on build the employee off boarding custom command and can get ... mailbox on litigation hold through Outlook 365's web portal it's so slow. Thanks!

asked Jul 30, 2014 by Ben.Burrell (490 points)
0 votes
1 answer

Hello, I have a request that is to give an option to run a task that will check a user's litigation hold status in Exchange Online and report back the details for ... users, and return the hold status properties such as hold date and notes? Thank you.

asked 15 hours ago by GronTron (390 points)
0 votes
1 answer

Hello, I am struggling to get Adaxes to work with Office 365. I cannot get the Azure AD module installed. I have installed both the latest full version and beta ... not supported by this processor type, which is expected. OS: Windows 8 Standard 32bit SP2

asked Jan 9, 2015 by DFassett (710 points)
0 votes
1 answer

I'd like to return the litigation hold attribute values if the script returns true. How can I do this?

asked 8 hours ago by GronTron (390 points)
0 votes
1 answer

Hi, We are trailing Adaxes and wanted to find out how to enable Litigation Hold on a user mailbox at the time of a new user creation. We are in a hybrid setup and are running a powershell script to enable remote mailbox onto O365 in the Business Rule.

asked Aug 17, 2018 by Shuja (100 points)
0 votes
1 answer