-
- Novice
- Posts: 4
- Liked: never
- Joined: Jun 07, 2022 5:38 pm
- Full Name: Yes We Did
- Contact:
Restore-VexItem - Modern Auth Issue
Hi guys,
Posting here because I could use some help. As we all know MS is disabling basic auth in October for EWS (and already doing so on select tenants). In order to use modern auth with the restore-vexitem cmdlet you have to specify the org name and app ID. The issue that I am having is when trying to restore multiple mailboxes (using a for each loop) to different organizations, it is requiring a new device code token for every mailbox restore. This has basically broken the automation because it requires interaction to get the app token.
Help would be greatly appreciated, cheers
Posting here because I could use some help. As we all know MS is disabling basic auth in October for EWS (and already doing so on select tenants). In order to use modern auth with the restore-vexitem cmdlet you have to specify the org name and app ID. The issue that I am having is when trying to restore multiple mailboxes (using a for each loop) to different organizations, it is requiring a new device code token for every mailbox restore. This has basically broken the automation because it requires interaction to get the app token.
Help would be greatly appreciated, cheers
-
- Product Manager
- Posts: 9846
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Restore-VexItem - Modern Auth Issue
Hi
Is it for every mailbox restore or is it for every organization that you have to connect?
I'm afraid, it's necessary to authenticate against https://microsoft.com/devicelogin.
I'm not aware of an automated solution right now. Let's see if someone else has an input on how to automate this.
Thanks
Fabian
Is it for every mailbox restore or is it for every organization that you have to connect?
I'm afraid, it's necessary to authenticate against https://microsoft.com/devicelogin.
I'm not aware of an automated solution right now. Let's see if someone else has an input on how to automate this.
Thanks
Fabian
Product Management Analyst @ Veeam Software
-
- Veeam Software
- Posts: 3193
- Liked: 774 times
- Joined: Oct 21, 2011 11:22 am
- Full Name: Polina Vasileva
- Contact:
Re: Restore-VexItem - Modern Auth Issue
Hi,
Fabian is correct - when you do restores to different M365 tenants, you need to authenticate to each of those and get tokens for each of the connections.
Though I may have a workaround in mind... need to test it first before recommending it...
Fabian is correct - when you do restores to different M365 tenants, you need to authenticate to each of those and get tokens for each of the connections.
Though I may have a workaround in mind... need to test it first before recommending it...
-
- Novice
- Posts: 4
- Liked: never
- Joined: Jun 07, 2022 5:38 pm
- Full Name: Yes We Did
- Contact:
Re: Restore-VexItem - Modern Auth Issue
Hey! Thanks for trying to help. It is happening for every mailbox restore. I am using the cmdlet as follows:
#Restore-VEXItem -Mailbox $mailboxtorestore -TargetMailbox $mailbox.TargetMailbox -OrganizationName "tenantname.onmicrosoft.com" -ApplicationId "00000000-0000-0000-0000-000000000000" -RestoreDeletedItem -region worldwide
-
- Novice
- Posts: 4
- Liked: never
- Joined: Jun 07, 2022 5:38 pm
- Full Name: Yes We Did
- Contact:
Re: Restore-VexItem - Modern Auth Issue
Hey! Any guidance would be immensely appreciated
Who is online
Users browsing this forum: Bing [Bot] and 18 guests