0 votes

We have a Deprovision Rule in where we want to set "hide from address lists" in exchange, if it is not already set.

image.png

but this does not work? what can i do, to first check if this is already set?

by (200 points)

1 Answer

0 votes
by (301k points)

Hello,

The check should be performed using the below script in the If PowerShell script returns true condition.

$Context.ConditionIsMet = $False

try
{
    $mailboxParams = $Context.TargetObject.GetMailParameters()
}
catch
{
    return
}

$Context.ConditionIsMet = $mailboxParams.HiddenFromExchangeAddressList -eq $False

Related questions

0 votes
1 answer

Unable to select the option "Hide from exchange addres list" from shared mailbox that is being managed via Adaxes Getting this error The operation on mailbox "6e481282- ... . This action should be performed on the object in your on-premises organization.

asked Apr 17 by sctheva (20 points)
0 votes
1 answer

I am trying to have a scheduled job that will hide groups that are empty and I can not seem to figure out how to do it.

asked Aug 20, 2021 by hgletifer (1.3k points)
0 votes
1 answer

Good Morning, Getting this issue when trying to hide/unhide Exchange Online Mailboxes from the GAL using the Exchange section: These accounts/mailboxes are anchored on prem ... the "Hide from Exchange Lists" section of exchange which was working previously.

asked Jan 7 by curtisa (330 points)
0 votes
1 answer

We have configured Adaxes to make accounts that have been Deprovisioned be disabled and hidden from GAL but they are still showing up in GAL. In Adaxes the account ... the sync is not completely working. Any suggestions on configurations will help. Thank you

asked Apr 2, 2021 by rujimg (40 points)
0 votes
1 answer

We are on 3.3.8507. We are using Adaxes to prepare users for deletion. Adaxes change the Exchange attribute to "msExchHideFromAddressLists=true". When we check our Exchange ... and they disappear. The Adaxes method does not seem to truly hide them. Ideas?

asked Oct 18, 2012 by It_helpdesk (280 points)
3,679 questions
3,361 answers
8,504 comments
549,357 users