How should you complete the relevant Windows PowerShell script?

DRAG DROP
Your company has an Office 365 subscription and uses Microsoft Exchange Online. Employees have
archive mailboxes that have the default retention policy applied.
A new company policy requires some existing mailboxes to have a retention policy that deletes only
email messages in the Deleted Items folder after 90 days. Deleted messages must be recoverable.
None of the existing retention tags meet the new requirement.
You create an empty retention policy named Policy-90.
You need to configure the retention policy and apply it to the mailboxes.

How should you complete the relevant Windows PowerShell script? To answer, drag the appropriate
code segments to the correct targets. Each segment may be used once, more than once, or not at
all. You may need to drag the split bar between panes or scroll to view content.

DRAG DROP
Your company has an Office 365 subscription and uses Microsoft Exchange Online. Employees have
archive mailboxes that have the default retention policy applied.
A new company policy requires some existing mailboxes to have a retention policy that deletes only
email messages in the Deleted Items folder after 90 days. Deleted messages must be recoverable.
None of the existing retention tags meet the new requirement.
You create an empty retention policy named Policy-90.
You need to configure the retention policy and apply it to the mailboxes.

How should you complete the relevant Windows PowerShell script? To answer, drag the appropriate
code segments to the correct targets. Each segment may be used once, more than once, or not at
all. You may need to drag the split bar between panes or scroll to view content.

Answer:



Leave a Reply 10

Your email address will not be published. Required fields are marked *


JCD

JCD

Right.
Also it is very tricky to complete the 3rd box!!
New-retentionpolicy set-retentionpolicy

You have to read carefully the question.
The Retention Policy is already created, but is empty.

So, you need to MODIFY it using set-retentionpolicy
not CREATE it with new-retentionpolicy.

Massimo

Massimo

Correct, but very badly worded: nowhere is said that “ExternalContacts” is a CSV file, and the original source files were Excel ones.
We just need to assume the consolidation process made a CSV files out of several Excel workbooks, although not even the file extension is mentioned.

Charlotte

Charlotte

Welcome to Microsoft’s logic: since only the command ‘Import-Csv’ is given, and not something like ‘Import-Excel’ (I doubt it exists, but par example), you have to deduce that the file extension will have to be a .csv file…

Deducing more information just from the answers given as an option, is a popular way for Microsoft of wording their exam questions. Annoying, but valuable once you get the hang of this.

fafacoco

fafacoco

WRONG
because set-retentionpolicy change a already created value. So The RIGHT is :

New-retentionpolicytag “tag-90” -type DeletedItems -RetentionEnabled $True -AgeLimitForRetention 90 -RetentionAction DeleteAndAllowRecovery
New-retentionPolicy “policy-90” -RetentionPolicyTagLinks “Tag-90”
Get-mailbox |Set-mailbox -retentionPolicy “Policy-90”

ERROR below :

PS C:\WINDOWS\system32> Set-RetentionPolicy “policy-90” -RetentionPolicyTagLinks “Tag-90”
Impossible d’effectuer l’opĂ©ration, car l’objet ‘policy-90’ est introuvable sur ‘AM………DC06.EURPR02A005.PROD.OUTLOOK.COM’.
+ CategoryInfo : NotSpecified: (:) [Set-RetentionPolicy], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=DB3PR02MB0459,RequestId=829d24c3-88d1-4bd7-be70-dc5e2daf1bdf,TimeStamp=26/12/2016 18:25:18] [FailureCategory=Cmdlet-ManagementObjectNotFoundException]
2840B86B,Microsoft.Exchange.Management.Tasks.SetRetentionPolicy
+ PSComputerName : outlook.office365.com

Ekramy Elnaggar

Ekramy Elnaggar

it is already mentioned that the Retention policy is already created ” you create an empty retention policy”

Bill Gates

Bill Gates

lololol