PrepAway - Latest Free Exam Questions & Answers

How should you complete the script?

DRAG DROP
Your company uses Microsoft Exchange Online. End users access their mailboxes by using
Outlook Web App (OWA).

The company is deploying an end-user request process for new shared mailboxes. When a
user requests a shared mailbox, a corresponding group must also be created. The requestor
will manage the group membership in OWA to allow other users access I the shared
mailbox.
You are creating a Windows PowerShell script to meet the following requirements:
Create a shared mailbox that has the requested display name and email address.
Create a group and make the requestor both the owner and a member of the group.
Assign full control for the shared mailbox to the group.
The script currently includes the following Windows PowerShell script segment:

You need to complete the Windows PowerShell script.
How should you complete the script? To answer, drag the appropriate cmdlets to the correct
targets. Each cmdlet 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:

Explanation:

13 Comments on “How should you complete the script?

  1. Aric says:

    New-MsolGroup is to add a new security group, which is annotated in the question:

    New-MsolGroup -Name $GroupName -DisplayName $GroupDisplayName -Alias $GroupAlias -ManagedBy $requestorUPN -Type ***Security***




    0



    0
  2. Khozi says:

    Answer is:
    New-Mailbox
    New-DistributionGroup
    Add-MailboxPermission
    Add-DistributionGroupMember

    Reason:
    New-MsolGroup does not have the following switches:
    -Name
    -Alias
    -Type
    New-MsolGroupMember does not have the following switches:
    -Identity
    -Member




    0



    0
  3. Justin Thompson says:

    I agree. The original answer is correct as Khozi gave a great explanation.

    New-Mailbox
    New-DistributionGroup
    Add-MailboxPermission
    Add-DistributionGroupMember

    An Exchange Distribution Group can be used for two things.

    A collection of users and other distribution groups for the purpose of sending email to. This will result in the sender being able to send to the group rather than adding everyone one at a time.
    A security group that is used within Exchange to control access to certain features and functions within Exchange.

    http://office365support.ca/creating-a-distribution-group-exchange-online/
    https://technet.microsoft.com/en-us/library/aa998856(v=exchg.150).aspx




    0



    0
  4. Alejandro says:

    PS C:\office365\Setupfiles> New-MsolGroup -Name $GroupName -DisplayName $GroupDisplayName -Alias $GroupAlias -ManagedBy $requestorUPN -type Security
    New-MsolGroup : No se encuentra ningún parámetro que coincida con el nombre del parámetro ‘Name’.
    En línea: 1 Carácter: 22
    + New-MsolGroup -Name $GroupName -DisplayName $GroupDisplayName -Alias $Gro …
    + ~~~~~
    + CategoryInfo : InvalidArgument: (:) [New-MsolGroup], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Online.Administration.Automation.NewGroup




    0



    0

Leave a Reply