0 votes

Good Afternoon,

Is it possible to move mailboxes to 365 using more advanced options? I am already using the documented script but we have a need to use other switches in the New-MoveRequest cmdlet such as -CompleteAfter to specify when a move completes.

When I try to write my own script I have to specify the -RemoteCredential parameter on New-MoveRequest but I have no way to pass credentials securely.

Here is the script I have so far, not sure if there is a better more native way to do this. I see the native way only supports a couple of options that are documented.

image.png

by (290 points)

1 Answer

0 votes
by (287k points)

Hello,

Is it possible to move mailboxes to 365 using more advanced options?

Unfortunately, there is no such possibility.

When I try to write my own script I have to specify the -RemoteCredential parameter on New-MoveRequest but I have no way to pass credentials securely.

You can use the approach where the credentials are specified in the Run as section of the Run a program or PowerShell script action. For details on how to obtain the credentials in the script, see section Running the script as a specific user of the following SDK article: https://adaxes.com/sdk/ServerSideScripting/#running-the-script-as-a-specific-user.

0

Thanks, unfortunately this doesn't work. I receive this error attempting that:

image.png

0

Hello,

The behavior is expected. You should not be using Connect-ExchangeOnline or Disconnect-ExchagneOnline. You should just add the credentials part to the script you provided in the initial request.

0

Just following the instructions provided, if this is expected behavior, should it not be removed from documentation?

I will try it the other way.

0

Hello,

Sorry for the confusion, but we are not sure what exactly you mean. Connect-ExchangeOnline and Disconnect-ExchagneOnline are not present anywhere in our documentation.

0

As per your link: https://adaxes.com/sdk/ServerSideScripting/#running-the-script-as-a-specific-user

image.png

In any event I modified my script to utilize the -remotecredential $credential

This is a snip of my script which is now working: image.png

0

Hello,

Thank you for pointing out the case. We will fix it as soon as possible. As for your script, it should work just fine.

Related questions

0 votes
0 answers

Ever since upgrading to 3.16.21906.0 the script here no longer works: https://www.adaxes.com/script-repository/move-mailbox-tofrom-microsoft-365-s579.htm Not sure what the issue is as I can't find any errors in the log.

asked Nov 16, 2023 by curtisa (290 points)
0 votes
1 answer

From my understanding I need to use a script to add send as and delegated mailbox permissions for 365 mailboxes. Does anyone have a sample script I could use for reference? Please and thank you!

asked Sep 25, 2018 by john.morrow (270 points)
0 votes
1 answer

We have the Skype for business Basic working correctly in Adaxes. However we need add to the server and grant specific options (screen sharing). We ... " -PolicyName MyPersistentChatPolicy # Assign a Persistent Chat Policy Remove-PSSession -Session $session

asked Jan 2, 2017 by willy-wally (3.2k points)
0 votes
1 answer

By default when you upload a user photo to Adaxes, it converts it to less than 100kb for Active Directory, that photo is synced to Azure AD, and once and only ... older script that could grab the photo before the compression to 100kb, ideally after cropping?

asked Jun 16, 2020 by ethanthekiwi (30 points)
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)
3,526 questions
3,217 answers
8,197 comments
547,625 users