• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Office 365 License Cleanup

In Office 365, is there a way to run a power shell command against a get-content txt file containing UPNs, and report back accounts that's are NOT listed in the get-content txt file, and export the results to CSV?

Reason I ask, this company I am helping migrate to office 365 never did any AD cleanup of terminated employees. The AD accounts  weren't ever deleted/disabled, but just had passwords reset. So they have been migrating accounts/mailboxes to the cloud and wasting E3 licenses.

I want to reclaim those non-employed user licenses and delete them from AD/Exchange so I can use those licenses on current employees that still need to be migrated.

Christian Hans
Christian Hans
  • 2
1 Solution
Todd NelsonSystems EngineerCommented:
Check this article out.  Not exactly what you specified but should be able to provide good guidance on how to script for a list of users...


Combine with this article to remove the license...

Todd NelsonSystems EngineerCommented:
Sufficient information to achieve resolution.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now