0 votes

We have a "Create Shared Mailbox" function which uses a custom command in PS. I've amended my PS script to created Shared Mailboxes to be inline with the V3 of Exchange Module. The script will run successfully once and fulfull it's duty, however when trying to run a second time Adaxes throws an error stating that the user account can't be found on the exchange server. The account is still created in AD but doesn't go any further than that. Is this an Adaxes issue or a PS issue?

Here's the script

image.png

And here's the error after using the the function once.

image.png

by (330 points)

1 Answer

+1 vote
by (272k points)

Hello,

The script itself does not involve Adaxes. Most probably, the cmdlet queries a domain controller that does not have the account yet (replication did not complete). Each time it can be different DCs and thus sometimes the script might work. To achieve the desired, it is recommended to use Adaxes build-in actions instead. For example: image.png

Related questions

0 votes
1 answer

The built in functionality to convert exchange online mailboxes to shared does not work for users that are synced from our local AD via Azure AD connect. How can we over ... account to in cloud from synced with AD all our issues with this would be resolved.

asked Jul 31, 2019 by john.morrow (270 points)
0 votes
1 answer

Hi, I need a script that will retrospectively create a sub-folder on file server's shared folder with following permissions: employee his/hers manager (taken from AD) specific ... for more pre-existing users that don't have them. Thanks for any feedback.

asked Nov 3, 2020 by roberttryba (70 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, i try to give the Support the permission to manage sent items of Shared mailboxes (O365): I've activated "Edit mailbox properties" in the frontend but cannot find this setting.

asked Mar 20, 2023 by boris (470 points)
0 votes
1 answer

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" ... want to run a scheduled job only on mailboxes that are NOT Shared Mailboxes. Thank you,

asked Sep 26, 2022 by hgletifer (1.3k points)
3,351 questions
3,052 answers
7,791 comments
545,091 users