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

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

I am trying to send a $context.logmessage from a condition script in a Scheduled Task but I get nothing in the log. Is this not possible? Morten A. Steien

asked Jul 20, 2020 by Morten A. Steien (300 points)
3,588 questions
3,277 answers
8,303 comments
548,084 users