0 votes
by (170 points)

1 Answer

0 votes
by (150k points)

by (170 points)
thanks for the prompt response.
i have couple of questions :
- to give full access to all the mailboxes , how to get complete list of mail boxes
- which address corresponds to 'SmtpAddress' param in Login method? and where do we use service principal display name after registering?
by (150k points)
- Use Get-Mailbox cmdlet to get a list of mail boxes: https://learn.microsoft.com/en-us/powershell/module/exchange/get-mailbox?view=exchange-ps
- In the Login method, the first parameter specifies the mailbox address from step 18.
- You don't use the principal display name anywhere. It's just a display name to help you identify the principal's purpose.
...