PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,592 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello experts,
I have to export the group source that the whether the group is cloud or on-prem synced group from the Entra ID using powershell module. Can anyone help me out for the same?
Looking for a quick reply.
Thanks!
You can use the OnPremisesSyncEnabled enabled property for that. Here is a sample cmdlet that does the export, add any other properties you are interested in as needed:
Get-MgGroup -Property id,displayName,mailEnabled,securityEnabled,groupTypes,onPremisesSyncEnabled,mail -All | select id,displayName,mailEnabled,securityEnabled,groupTypes,onPremisesSyncEnabled,mail | Export-CSV -nti C:\temp\blabla.csv