question

Melmix-5243 avatar image
0 Votes"
Melmix-5243 asked ·

Can you use PowerShell to extract E3/E5 user activity and remove licenses based on this?

Hello :-)

For a while I've been thinking I want to automate cleaning up the E3/E5 license usage. I want to look at the user activity on various platforms such as Exchange Online, Sharepoint Online, Teams and so on and if there has been no activity for like 3 months and the license wasn't recently assigned (new user), I want to remove the license.

Removing the license is easy enough. I also have the data I need from the Microsoft 365 Admin Portal with the reports for usage (https://admin.microsoft.com/Adminportal/Home?source=applauncher#/reportsUsage). However I can't seem to find any documentation on how to extract the usage by PowerShell. Is there anyone who has done this and can help me get started?

Thank you.

windows-server-powershellazure-ad-user-managementmicrosoft-graph-education
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You may want to get started from here.


1 Vote 1 ·

1 Answer

Melmix-5243 avatar image
1 Vote"
Melmix-5243 answered ·
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.