Thursday, 21 September 2017

Export O365 mailboxes with assigned licenses types

Export O365 mailboxes with licenses types assigned
Or, PowerShell command to export O365 user’s mailboxes with license assignment details
Or, Export mailboxes with assigned license details

Descriptions: If you are looking for a simplest way of exporting all users’ mailboxes with license types assigned to them, this article is for you. You can use Azure Active Directory PowerShell command to export the mailboxes with licenses types assigned to them.

Steps:
Login to O365 server using Azure Active Directory PowerShell Administrative privileges.

Connect O365 Azure Active Directory
connect-msolservice

























Run below command to get the report:
Get-MSOLUser -All | select userprincipalname,islicensed,{$_.Licenses.AccountSkuId} | export-csv d:\temp\userslicense.csv

You can change the export folder path if you have a different one.

Cheers, please write me back if you have query of feedback on this.

Wednesday, 20 September 2017

Export O365 mailboxes with last modified date

Or, PowerShell command to export O365 user’s mailboxes with last modified or last updated date
Or, Export mailboxes with last updated/modified date

Descriptions: If you are looking for a simplest way of exporting all users’ mailboxes with last modified or updated date, this article is for you. You can use Azure PowerShell command to export the mailboxes with last modified date.

Steps:
Login to O365 server using PowerShell Administrative privileges, To know how to connect O365 server PowerShell administrative console you may check below article

Run below command to get the report:
Get-Mailbox | select displayname,whencreated,whenchanged | export-csv d:\temp\userdetails.csv

You can change the export folder path if you have different one.


Cheers, please write me back if you have query of feedback on this.