0 votes

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

0 votes
by (294k points)

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

0

Thank you very much for the quick response!

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

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

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

0 votes
1 answer

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 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

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

We're working on migrating to Office 365, and have a few questions. We use Ad Sync to sync our users and groups to Office 365. Part of our Deprovisioning needs to ... here? Will the user be moved and mailbox cleaned up before Litigation Hold ever takes affect?

asked Jun 6, 2017 by rurbaniak (1.5k points)
0 votes
1 answer

Hi, I try to make a report for our SAM to show all users with a specific license. But I fail to even find anything. I tried, among many ... .DirectorySearcher.AppendFilter("(adm-O365AccountLicenses=POWER_BI_STANDARD)") But I get nothing. Please advice.

asked May 20, 2021 by KristofferJ (80 points)
3,589 questions
3,277 answers
8,303 comments
548,105 users