0 votes

I tried searching and looking through the script repo but I coun't find what I was looking for.

Is there a script I can use with "If PowerShell scripts returns true" that will tell me if a mailbox on Echange one is a Shared Mailbox or not?

If a script is not required what would I use? I want to run a scheduled job only on mailboxes that are NOT Shared Mailboxes.

Thank you,

by (1.3k points)

1 Answer

0 votes
by (270k points)

Hello,

You can use the following script in your condition:

$Context.ConditionIsMet = $Context.TargetObject.MailboxType -eq "ADM_EXCHANGE_MAILBOXTYPE_SHARED"

Related questions

0 votes
1 answer

In the Adaxes GUI I see three forms of delegation: Send As Send on Behalf Of Mailbox Rights In the WEB GUI there are also three forms of delegation: Shared Mailbox Members Full ... Behalf Of" missing on the WEB? -- Morten A. Steien For reference GUI: WEB:

asked Jul 14, 2023 by Morten A. Steien (300 points)
0 votes
1 answer

Shared mailboxes are treated as standard users, however they really should have a separate view. I would like to request that a new view is made avaiilable for Shared ... office location, data from HR systems, windows profile, etc are not really relevant.

asked Jun 23, 2023 by i*windows (140 points)
0 votes
1 answer

Hi, is there a way through the Adaxes SDK to check all users against a specific group and determine wether or not they are part of it (must include direct and indirect ... Forrest root domain which holds the group, members of the group can be in every domain

asked Jun 30, 2014 by ijacob (960 points)
0 votes
1 answer

I'd like some help with a script to revoke a users rights to a shared mailbox upon being removed from a security group. I already have the reverse, a script that adds users to a shared mailbox, if they are a member of a group, now I just need the reverse.

asked Mar 20 by dominik.stawny (160 points)
0 votes
1 answer

Hi We have Exchange set up in hybrid mode and are currently using scripts to create the remote mailbox. We're looking to enable Adaxes to do this (from here) but before we do ... there's anything special we need to do in order to get this to work? Thanks Matt

asked Jun 10, 2022 by chappers77 (2.0k points)
3,326 questions
3,026 answers
7,727 comments
544,678 users