- Open the following script in powershell either directly or through ISE/VSCode located \\hnas1-evs1\script-dev$\scripts\Powershell\o365Scripts\Office365Licenses\SharedInboxLicenses-v1.00.ps1
- The script contains two functions.
- The first function, GetSharedLicenseCSV pulls csv from Office365 any shared inbox that has an Office365 license
- The second function, RemoveSharedLicenseGroupsfromAD removes Shared Licenses from groups using the csv created from the GetSharedLicenseCSV function
- Select one of the following options
- Selecting 1 runs the GetSharedLicenseCSV function
- Selecting 2 runs the RemoveSharedLicenseGroupsfromAD function
- Selecting 3 runs the GetSharedLicenseCSV function than runs the RemoveSharedLicenseGroupsfromAD function
- If you have any more questions more information can be found in the notes inside the script.
- Additionally, each section can be run using switch parameters. for examples see below
- '\\hnas1-evs1\script-dev$\scripts\Powershell\o365Scripts\Office365Licenses\SharedInboxLicenses-v1.00.ps1' -GetSharedLicenseCSV
- '\\hnas1-evs1\script-dev$\scripts\Powershell\o365Scripts\Office365Licenses\SharedInboxLicenses-v1.00.ps1' -RemoveSharedLicenseGroupsfromAD
- '\\hnas1-evs1\script-dev$\scripts\Powershell\o365Scripts\Office365Licenses\SharedInboxLicenses-v1.00.ps1' -Both
How To Remove O365 Licenses From All Shared Inboxes
Modified on: Thu, 5 Jan, 2023 4:10 PM
Yes No
Sorry we couldn't be helpful. Help us improve this article with your feedback.