09-17-2018 01:07 PM
09-17-2018 01:07 PM
I want to get (Powershell & GUI) the users who are not included in any one of the my office 365 groups (Ex: ind_sol, indian_all_employees,client_sol, BD-internal groups)
09-17-2018 11:16 PM
Well, define groups? If you only care about Exchange groups, this script will go over the list of users, generate a report of the group membership for each of them, and export to CSV file, where you can easily filter out "empty" values (when a user is not a member of any group).
As the script runs Exchange Remote PowerShell, it will only include groups Exchange "knows" about, such as DGs, mail-enabled SGs and "modern" Office 365 groups. If you want to include "regular" security groups as well, you will need to query Azure AD directly.
09-18-2018 10:59 AM
I am running below script, but i am unable to get users belonging group
Get-MailBox | Select-Object UserPrincipalName, DisplayName, UnifiedGroup, Alias |
09-20-2018 06:40 AMSolution
The Get-Mailbox cmdlet will not return any group membership, including that to unified groups. Since I seem t have forgotten to include a link to the script in my first post, try it now: https://gallery.technet.microsoft.com/Office-365-MemberOf-aec693c9?redir=0
09-22-2018 10:30 AM
Thanks for the reply Michev.
While i am running "Get-DGMembershipInventory -IncludeUserMailboxes | Export-Csv C:\users\xxxx\desktop\Gusers.csv " it is throwing unrecognized error " Get-DGMembershipInventory : The term 'Get-DGMembershipInventory' is not recognized as the name of a cmdlet, function,script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." I am tryning to install the module but it won't available : Install-Module -Name DGMembershipInventory.
As i am new to PowerShell i don't want to use whole script which is available in the url which you have shared with me.
09-29-2018 12:47 PM
Sorry to include this new issue in this link, but i have this very urgent so i am posting in this link only...could please help me with the below issue
I have 45 business premium licenses assigned previous, now i have purchased 40 business premium licenses and 5 E5 Licenses. I updated the 40 licenses then it is showing 5 invalid licenses...now i want to know which 5 licenses are going to be invalid, is there any way to know or O365 randomly unassigns the 5 licenses