exam questions

Exam MS-300 All Questions

View all questions & answers for the MS-300 exam

Exam MS-300 topic 4 question 4 discussion

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

HOTSPOT -
You have a Microsoft 365 subscription.
You need to remove the Microsoft Flow license and the Microsoft PowerApps license for the users in the sales department.
How should you complete the PowerShell script? 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/disable-access-to-services-with-office-365-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
Oana1990
Highly Voted 5 years, 4 months ago
why AddLicense and not RemoveLicense?
upvoted 6 times
...
Ye
Highly Voted 5 years, 6 months ago
Set-MsolUserLicense AddLicense LicenseOptions
upvoted 5 times
...
Himanjan
Most Recent 5 years, 1 month ago
Question asks to remove license for users in sales department. $userArray = Get-MsolUser -All -Department "Sales" for ($i=0; $i -lt $userArray.Count; $i++) { Set-MsolUserLicense -UserPrincipalName $userArray[$i].UserPrincipalName -RemoveLicenses "<SKUID_FLOW>","<SKUID_POWERAPPS>" }
upvoted 2 times
...
626health
5 years, 2 months ago
https://docs.microsoft.com/en-us/powershell/module/msonline/set-msoluserlicense?view=azureadps-1.0
upvoted 1 times
...
vikaswins
5 years, 8 months ago
First, connect to your Office 365 tenant. Next, use this command to view your available licensing plans, also known as AccountSkuIds: Get-MsolAccountSku | Select AccountSkuId | Sort AccountSkuId 1)Identify the undesirable services in the licensing plan by using the following syntax: $LO = New-MsolLicenseOptions -AccountSkuId <AccountSkuId> -DisabledPlans "<UndesirableService1>", "<UndesirableService2>"... 2)To create a new account that has the services disabled, use the following syntax: New-MsolUser -UserPrincipalName <Account> -DisplayName <DisplayName> -FirstName <FirstName> -LastName <LastName> -LicenseAssignment <AccountSkuId> -LicenseOptions $LO -UsageLocation <CountryCode> To disable the services for an existing licensed user, use the following syntax: Set-MsolUserLicense -UserPrincipalName <Account> -LicenseOptions $LO
upvoted 3 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 ...