Question 19 — AB-650 Practice Exam 6
An Exchange Online administrator must first retrieve a user's display name and storage quota, and then configure forwarding for that same mailbox. Both operations must target the mailbox by its identity. Which PowerShell approach meets the requirements? (Select one answer)
Run Set-Mailbox with -Identity to retrieve the properties, and then run Get-Mailbox with -Identity to configure forwarding.
Run Get-Mailbox with -Identity to retrieve the properties, and then run Set-Mailbox with -Identity to configure forwarding.
Run Get-Mailbox with -ForwardingAddress to retrieve the properties, and then run Set-Mailbox without identifying the mailbox.
Run Set-Mailbox with -ForwardingAddress to retrieve the properties, and then run Get-Mailbox with -Identity to modify forwarding.
Correct answers
Run Get-Mailbox with -Identity to retrieve the properties, and then run Set-Mailbox with -Identity to configure forwarding.
Explanations
Correct:
Run Get-Mailbox with -Identity to retrieve the properties, and then run Set-Mailbox with -Identity to configure forwarding.
Get-Mailbox retrieves mailbox properties, while Set-Mailbox changes mailbox configuration. Both cmdlets support the -Identity parameter for targeting a specific mailbox.
Wrong:
Run Set-Mailbox with -Identity to retrieve the properties, and then run Get-Mailbox with -Identity to configure forwarding.
Set-Mailbox modifies mailbox settings rather than retrieving the requested properties, while Get-Mailbox retrieves information rather than applying the forwarding change.
Run Get-Mailbox with -ForwardingAddress to retrieve the properties, and then run Set-Mailbox without identifying the mailbox.
-ForwardingAddress is used when configuring forwarding with Set-Mailbox. The mailbox still needs to be identified when the operation targets a specific mailbox.
Run Set-Mailbox with -ForwardingAddress to retrieve the properties, and then run Get-Mailbox with -Identity to modify forwarding.
Set-Mailbox can configure forwarding, but it is not the retrieval cmdlet. Get-Mailbox retrieves mailbox information and does not perform the forwarding modification.