PowerShell help - specifically Office 365

Soldato
Joined
28 Sep 2008
Posts
14,181
Location
Britain
Hi all,

What I'm trying to do is simple, but trying to achieve it seems more difficult.

I want to export all users and their license state to a CSV file. I've done this, and I'm happy with it.

However, I want to enhance that with an extra column detailing their last logon date, which I can only get from the get-mailbox cmdlet, which, is a different O365 PS Session. I want that information to be mapped to the user and their license CSV file.

It's the marriage of the two bits of info I am struggling with. I could probably take both independent CSVs and shove them in Excel and spend time working there, but I think there's an easier way....

Ta
 
Back
Top Bottom