PrepAway - Latest Free Exam Questions & Answers

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.

PrepAway - Latest Free Exam Questions & Answers

Answer:

4 Comments on “How should you complete the relevant Windows PowerShell script?

  1. JCD says:

    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.




    0



    0
  2. fafacoco says:

    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




    0



    0

Leave a Reply