Open David-Barrett-MS opened 1 year ago
Hi David, When i try the approach below, i get a prompt for the web URL after ever mailbox is processed. Is there a quick way around that by reusing the existing URL code? It appears that is what the script is meant to do with the existing CSV implementation you built in anyway.
start-transcript -path .\MirrorMailboxContents.txt
Import-Csv MirrorMailbox.csv | ForEach-Object{ $SourceMBX = $.UserPrincipalName $TargetMBX = $.UserPrincipalNameShared .\Merge-MailboxFolder.ps1 -SourceMailbox $SourceMBX -TargetMailbox $TargetMBX -ProcessSubfolders -CreateTargetFolder -Office365 -OAuth -OAuthTenantId "01088aa4-1bdc-42ad-xYYx-17ef028779fc" -Copy }
Stop-transcript
Assuming you mean an auth prompt, you'll need to use app auth to avoid that. Delegate auth will prompt each time the script is run.
Hi David, How can we switch to using App Authentication?
Cheers, Michael Fabunmi
Get Outlook for Androidhttps://aka.ms/ghei36
From: David Barrett @.> Sent: Wednesday, June 7, 2023 8:30:36 am To: David-Barrett-MS/PowerShell-EWS-Scripts @.> Cc: mfabunmi2023 @.>; Comment @.> Subject: Re: [David-Barrett-MS/PowerShell-EWS-Scripts] Merge-MailboxFolders (Issue #25)
Assuming you mean an auth prompt, you'll need to use app auth to avoid that. Delegate auth will prompt each time the script is run.
— Reply to this email directly, view it on GitHubhttps://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/issues/25#issuecomment-1580101088, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5RJ2C62TRWDEX2NDRCKGI3XKAUZTANCNFSM6AAAAAAVFMLCZQ. You are receiving this because you commented.Message ID: @.***>
Add Target Mailbox to CSV import feature.