

When you’re ready to connect, go to the PowerShell console window and run the script by typing .\ scriptname.ps1 (that’s period, backslash, name of file), and enter your Office 365 administrative credentials when prompted. I’ve created a script to simplify this process just copy it into a text file and save the file with the extension. The first step in any of these tasks is open a PowerShell session to Office 365 from your local machine. Moreover, the syntax of PowerShell commands changes very infrequently, making PowerShell well suited for long-term administrative use. Though the Office 365 admin center is a starting point for most admin tasks and includes links to service-specific admin centers for Azure Active Directory, Exchange Online, SharePoint Online and Skype for Business Online, some advanced tasks can only be performed using PowerShell.
#Remove office license how to#
I’ll be sharing how to accomplish these tasks in Office 365 using PowerShell. In this blog post, I’ll cover how to create Office 365 accounts quickly and efficiently, assign the appropriate licenses to them, and how to delete Office 365 accounts when they are no longer needed. You can easily remove licenses from user accounts that are no longer in use and re-assign them to other user accounts. To use Office 365 services, however, each user needs their own user account in Office 365 with assigned licenses. If you’re not going to reassign the unused licenses to other users, consider removing the licenses from your subscription so that you’re not paying for more licenses than you need.Office 365 includes a wide variety of services, such as Exchange Online, SharePoint Online and OneDrive for Business, that foster communication and collaboration between users.
#Remove office license license#
If you remove a user's license and they still have Office apps installed, they see Unlicensed Product and activation errors in Office when they use Office apps.To learn how to block a user's access to Microsoft 365 data after their license is removed, and how to get access to the data afterwards, see Remove a former employee.For more information, see Create and manage inactive mailboxes in Exchange Online. If you have an Enterprise subscription, like Office 365 Enterprise E3, Exchange Online lets you preserve the mailbox data of a deleted user account by using inactive mailboxes.For more information, see "Searching disconnected or de-licensed mailboxes" in Content Search in Microsoft 365. When the license is removed, the user's mailbox is no longer searchable by using an eDiscovery tool such as Content Search or Advanced eDiscovery.For more information, see OneDrive retention and deletion.

Files saved in OneDrive for Business aren't deleted unless the user is deleted from the Microsoft 365 admin center or is removed through Active Directory synchronization.After the 30-day grace period, the data is deleted and can't be recovered. When a license is removed from a user, Exchange online data that is associated with that account is held for 30 days.What happens to a user's data when you remove their license? In the Manage product licenses pane, select Unassign all > Save changes. Select the circles next to the names of the users who you want to unassign licenses for.Īt the top, select Manage product licenses.

