<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Office365_Powershell_Assign_Services</id>
	<title>Office365 Powershell Assign Services - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Office365_Powershell_Assign_Services"/>
	<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Office365_Powershell_Assign_Services&amp;action=history"/>
	<updated>2026-05-06T15:32:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.1701technology.com/index.php?title=Office365_Powershell_Assign_Services&amp;diff=466&amp;oldid=prev</id>
		<title>Michael.mast: Created page with &quot;So Microsoft did a stupid with assinging Office services via powershell. With mail boxes you can use simple boolean values to enable/disable services. However, with Office you...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Office365_Powershell_Assign_Services&amp;diff=466&amp;oldid=prev"/>
		<updated>2017-06-27T13:30:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;So Microsoft did a stupid with assinging Office services via powershell. With mail boxes you can use simple boolean values to enable/disable services. However, with Office you...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;So Microsoft did a stupid with assinging Office services via powershell. With mail boxes you can use simple boolean values to enable/disable services. However, with Office you have to remove the license and re-apply with the options you require. Not an issue if they would have documented these things.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The first issue was trying to find out what the services were called. Whoever came up with these names is as bad as I am when it comes to naming things.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Get-MsolUser -UserPrincipalName $user).Licenses.ServiceStatus &lt;br /&gt;
&lt;br /&gt;
FORMS_PLAN_E1                   Success          &lt;br /&gt;
FLOW_O365_P1                    Success          &lt;br /&gt;
POWERAPPS_O365_P1               Success          &lt;br /&gt;
O365_SB_Relationship_Management Success          &lt;br /&gt;
TEAMS1                          Success          &lt;br /&gt;
PROJECTWORKMANAGEMENT           Success          &lt;br /&gt;
SWAY                            Disabled         &lt;br /&gt;
INTUNE_O365                     PendingActivation&lt;br /&gt;
SHAREPOINTWAC                   Success          &lt;br /&gt;
OFFICE_BUSINESS                 Success          &lt;br /&gt;
YAMMER_ENTERPRISE               Success          &lt;br /&gt;
EXCHANGE_S_STANDARD             Success          &lt;br /&gt;
MCOSTANDARD                     Success          &lt;br /&gt;
SHAREPOINTSTANDARD              Success          &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The next step was to remove the license and re-apply. The key here is to create the options as it's own object, then embed into the license assignment as a variable.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Connect-MsolService -Credential $cred&lt;br /&gt;
$user=&amp;quot;&amp;lt;user principle name&amp;gt;&amp;quot;&lt;br /&gt;
$disable=New-MsolLicenseOptions -AccountSkuId &amp;lt;business name&amp;gt;:O365_BUSINESS_PREMIUM -DisabledPlans SWAY,FORMS_PLAN_E1,FLOW_O365_P1,POWERAPPS_O365_P1,TEAMS1,PROJECTWORKMANAGEMENT,SHAREPOINTWAC,YAMMER_ENTERPRISE,SHAREPOINTSTANDARD&lt;br /&gt;
Set-MsolUserLicense -UserPrincipalName $user -RemoveLicenses &amp;lt;business name&amp;gt;:O365_BUSINESS_PREMIUM&lt;br /&gt;
Set-MsolUser -UserPrincipalName $user -UsageLocation US&lt;br /&gt;
Set-MsolUserLicense -UserPrincipalName $user -AddLicenses &amp;lt;business name&amp;gt;:O365_BUSINESS_PREMIUM -LicenseOptions $disable&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael.mast</name></author>
		
	</entry>
</feed>