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 (350 points)

1 Answer

+1 vote
by (289k 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
0 answers

We currently convert user mailboxes to shared mailboxes during deprovisioning process but if the user mailbox was already a shared mailbox then the script throws an error ... user mailbox. Here is the actions of the current deprovision command: Thanks!

asked Oct 1 by Carlos (40 points)
0 votes
1 answer

So if we change the flow on the exisitng deprovision script to the above, is there a way to set a retention policy tag to the converted mailbox? Our standard retention is 90 days.

asked Sep 19 by EnbyAdmin (60 points)
0 votes
1 answer

I am looking for a solution to recognize in advance when the storage space of a shared mailbox is full and then a mail is sent Unfortunately, the report under ... -Encoding UTF8 Is there possibly a solution to query this automatically via Adaxes? Thanks!

asked Sep 13 by boris (530 points)
3,548 questions
3,239 answers
8,232 comments
547,814 users