PrepAway - Latest Free Exam Questions & Answers

Which three Windows PowerShell commands should you run …

DRAG DROP
A company has an Office 365 tenant. All employee mailboxes are in Exchange Online. You plan to implement
archiving.
The archive name for each archive mailbox must use the following format: “Archive-” followed by the display
name of the user.
You need to enable online archives for all mailboxes.
Which three Windows PowerShell commands should you run in sequence? To answer, move the appropriate
actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
You can configure a different archive name when you use Windows PowerShell to enable archive mailboxes.
For example, to name archive mailboxes “In-Place Archive – <display name>” when you enable archive
mailboxes for all users in your organization, run the following commands:
$users = Get-Mailbox -ResultSize unlimited -Filter { ArchiveStatus -Eq “None” -AND RecipientTypeDetails -eq
‘UserMailbox’}
ForEach ($a in $users) {$a.ArchiveName.Add(“In-Place Archive – $a”)}
$users | %{Enable-Mailbox $_.Identity -Archive -ArchiveName $_.ArchiveName}

https://technet.microsoft.com/en-us/library/jj984357(v=exchg.150).aspx


Leave a Reply