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 (299k 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

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)
0 votes
1 answer

Hello - I have configured some custom property patterns for office location and Department and am seeing a drop down list when attempting to create a new user limited to the ... down list. Is this therefore only limited to some AD attributes and not others ?

asked Mar 21, 2017 by cdsouza (50 points)
3,634 questions
3,322 answers
8,398 comments
548,787 users