Remove a License Mapping

Scenario/Problem: You need to remove a previously added license mapping.

Solution: Use the Remove-SPUserLicenseMapping cmdlet with the Identity parameter.

To remove a previously added license mapping, use the Remove-SPUserLicenseMapping cmdlet, providing the identity of the license mapping as shown in Listing 11.8.

Listing 11.8. Removing a License Mapping

Remove-SPUserLicenseMapping -Identity 3bd51156-49fd-4122-85d0-58f7019bf270

Use the Get-SPUserLicenseMapping cmdlet explained in the previous section to both retrieve the GUID identity of the license mapping you want to remove and, afterward, verify that the mapping was removed.

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.