exam questions

Exam MS-300 All Questions

View all questions & answers for the MS-300 exam

Exam MS-300 topic 1 question 19 discussion

Actual exam question from Microsoft's MS-300
Question #: 19
Topic #: 1
[All MS-300 Questions]

HOTSPOT -
You manage multiple Microsoft SharePoint Online sites.
You have a CSV file named Groups.csv that contains the following data.

Site, Group, Permissions -
https://contoso1.sharepoint.com/sites/sitea, Project Leads, Full Control https://contoso1.sharepoint.com/sites/siteb, Auditors, View Only
You have a CSV file named Users.csv that contains the following data.

Group, LoginName, Site -
Project Leads, Lead1, https://contoso1.sharepoint.com/sites/sitea
Auditors, Auditor1, https://contoso1.sharepoint.com/sites/siteb
You need to create multiple SharePoint groups and add the users to the groups.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
References:
https://docs.microsoft.com/en-us/office365/enterprise/powershell/create-sharepoint-sites-and-add-users-with-powershell

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ye
Highly Voted 5 years, 6 months ago
New-SPOSiteGroup $_.Permissions Add-SPOUser
upvoted 12 times
...
vikaswins
Most Recent 5 years, 9 months ago
The commands needed in PowerShell script named UsersAndGroups.ps1 are : Import-Csv C:\users\MyAlias\desktop\Groups.csv | ForEach-Object {New-SPOSiteGroup -Group $_.Group -PermissionLevels $_.PermissionLevels -Site $_.Site} Import-Csv C:\users\MyAlias\desktop\Users.csv | where {Add-SPOUser -Group $_.Group –LoginName $_.LoginName -Site $_.Site} Executing the PowerShell script: Set-ExecutionPolicy Bypass Enter 'Y' for the confirmation prompt paste 'c:\users\MyAlias\desktop\UsersAndGroups.ps1' Where MyAlias equals your user name
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...