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.
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}Enable or disable an archive mailbox in Exchange Online
https://technet.microsoft.com/en-us/library/jj984357(v=exchg.150).aspx
should be :
Get-Mailbox -ResultSize unlimited -filter * | where {$_.ArchiveStatus -Eq “None” -AND
$_.RecipientTypeDetails -eq ‘UserMailbox’}
@to easy – In this case you wouldn’t need -filter *. “where” takes care of the filtering