Correct Answer:
Explanation/Reference:
Explanation:
The script asks the user for the following information: RequestorUPN, DisplayName, Alias and Domain.
The RequestorUPN is the name of the user requesting the 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: [email protected]. 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 cmdlet is 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