Exam4Training

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 to 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.

Answer:

Explanation:

The script asks the user for the following information: RequestorUPN, DisplayName, Alias and Domain.

The RequestorUPN is the name of the user requestingthe mailbox. This value is stored in the $requestorUPN variable.

The DisplayName is the display name of the mailbox. This value is stored in the $displayname variable.

The Alias is the alias for the mailbox, for example: Jane.Doe. This value is stored in the $Alias variable.

The domain is the domain required for the mailbox, for example: contoso.com. The value is stored in the $domain variable.

The script uses the $alias variable and the $domain variable to construct an email address. For example: jane.doe@contoso.com. This value is stored in the $SmbName variable.

For the group information, the group display name is constructed from the $displayname variable and “-group”. This value is stored in the $GroupDisplayName variable.

The group alias is constructed from the $alias variable and “-group”. This value is stored in the $GroupAlias variable.

The group name is constructed from the $GroupAlias variable and the $domain variable. This value is stored in the $GroupName variable.

Box 1: The New-Mailbox cmdletis used to create a new mailbox. The values stored in the variables provide the information required to complete the command.

Box 2: The New-DistributionGroup cmdlet is used to create a new distribution group. The values stored in the variables provide the information required to complete the command.

Box 3: The Add-MailboxPermission cmdlet is used to assign the distribution group full control access to the shared mailbox. The values stored in the variables provide the information required to complete the command.

Box 4: The Add-DistributionGroupMember cmdlet is used to add the mailbox requestor to the distribution group. The values stored in the variables provide the information required to complete the command.

References:

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

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

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

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

Latest 70-347 Dumps Valid Version with 314 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version