<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>group based licensing powershell Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/group-based-licensing-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/group-based-licensing-powershell/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Tue, 29 Oct 2019 05:48:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>Find All Azure AD Groups That Auto Assign Licenses Using Powershell</title>
		<link>https://thesysadminchannel.com/find-all-azure-ad-groups-that-auto-assign-licenses-using-powershell/</link>
					<comments>https://thesysadminchannel.com/find-all-azure-ad-groups-that-auto-assign-licenses-using-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Sat, 01 Jun 2019 05:08:10 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[azure ad dynamic groups]]></category>
		<category><![CDATA[Azure AD groups that auto assign licenses]]></category>
		<category><![CDATA[azure ad license reprocess powershell]]></category>
		<category><![CDATA[check if user license is assigned directly or inherited from a group]]></category>
		<category><![CDATA[group based licensing nested groups]]></category>
		<category><![CDATA[group based licensing powershell]]></category>
		<category><![CDATA[group-based licensing in azure active directory]]></category>
		<category><![CDATA[remove direct license assignment office 365]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=1713</guid>

					<description><![CDATA[<p>Today I am going to show you how to find all Azure AD groups that auto assign licenses using Powershell. Whether you&#8217;re cleaning house or doing a simple audit to make sure everything is nice and tidy, you&#8217;ll want to&#8230; <a href="https://thesysadminchannel.com/find-all-azure-ad-groups-that-auto-assign-licenses-using-powershell/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/find-all-azure-ad-groups-that-auto-assign-licenses-using-powershell/">Find All Azure AD Groups That Auto Assign Licenses Using Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today I am going to show you how to find all Azure AD groups that auto assign licenses using Powershell. Whether you&#8217;re cleaning house or doing a simple audit to make sure everything is nice and tidy, you&#8217;ll want to know if you have any groups auto assigning licenses.  Sometimes it may be the case that multiple groups are assigning the same license, or other times you want to know what&#8217;s being applied to where.  All you&#8217;ll need is the MSOnline Module for Powershell.</p>
<p><em>If you have any questions, feel free to drop me a comment and I&#8217;ll do my best to get back to you</em>.</p>
<h2>Find All Azure AD Groups That Auto Assign Licenses Using Powershell</h2>
<p>As mentioned above, it is required that you download and install the MSOL module to make sure this works. To do that running the following command.</p>
<pre class="brush: powershell; title: ; notranslate">
Install-Module MSOnline
Connect-MsolService


#Get all groups that are auto assigning licenses
Get-MsolGroup -All | Where-Object {$_.AssignedLicenses -ne $null} | ft -AutoSize ObjectID, DisplayName, @{Name = 'AssignedLicense'; Expression = {$_.AssignedLicenses.AccountSkuId.SkuPartNumber}}
</pre>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2019/10/Get-MSOLGroup-Assigned-Licenses.png" target="_blank" rel="noopener noreferrer"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2019/10/Get-MSOLGroup-Assigned-Licenses.png" alt="Get-MSOLGroup Assigned Licenses" width="1009" height="379" class="aligncenter size-full wp-image-1721" srcset="https://thesysadminchannel.com/wp-content/uploads/2019/10/Get-MSOLGroup-Assigned-Licenses.png?v=1572326622 1009w, https://thesysadminchannel.com/wp-content/uploads/2019/10/Get-MSOLGroup-Assigned-Licenses-768x288.png?v=1572326622 768w" sizes="(max-width: 1009px) 100vw, 1009px" /></a></p>
<p>In my environment I have an EMS E5 trial license being applied to my E1 Licensed users group.  Basically, if a user has an E1 license, an Azure AD dynamic group will auto assign that same user to the Users with E1 License group, which will in turn automatically grant them an EMS E5 (EMSPremium) license.  Pretty nice to have to have it all automated and check if user license is assigned directly or inherited from a group.</p>
<p>This was a fairly simple post with a Powershell one-liner to find all Azure AD groups that auto assign licenses using Powershell. Once you find the groups, it&#8217;s up to you to remove direct license assignment from Office 365/ Azure AD, or leave it as is.</p>
<p>Since MSOL / MSOnline is now deprecated, I with Microsoft would add this same property to the Get-AzureADGroup cmdlet but that&#8217;s still in the works I suppose.</p>
<p>The post <a href="https://thesysadminchannel.com/find-all-azure-ad-groups-that-auto-assign-licenses-using-powershell/">Find All Azure AD Groups That Auto Assign Licenses Using Powershell</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/find-all-azure-ad-groups-that-auto-assign-licenses-using-powershell/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1713</post-id>	</item>
	</channel>
</rss>
