How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

Today I am going to show you how to use PowerShell cmdlet to disable TEAM for all users in office 365.

  1. Download the 64-bit version of the Microsoft Online Services Sign-in Assistant from following link.

    https://www.microsoft.com/en-us/download/details.aspx?id=41950

    022620 2358 HowtousePow1 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

    022620 2358 HowtousePow2 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  2. Double-click the msoidcli_64.msc to start install Microsoft Online Services Sign-in Assistant for IT Professionals RTW.

    022620 2358 HowtousePow3 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  3. On the License Agreement page, select I accept the terms in the License Agreement and Privacy Statement, click Install.

    022620 2358 HowtousePow4 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  4. On the Completed the Microsoft Online Services Sign-in Assistant Setup Wizard page, click Finish.

    022620 2358 HowtousePow5 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  5. Enter following PowerShell cmdlet to Install the Microsoft Azure Active Directory Module for Windows PowerShell.
    
    
    Install-Module MSOnline
    
    
    
  6. If prompted to install the module from PSGallery, type A and press ENTER.

    022620 2358 HowtousePow6 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  7. Enter following PowerShell cmdlet to connect to Azure AD for your Office 365 subscription.
    
    
    Connect-MsolService
    
    
    
  8. In the Sign into your account dialog box, type your Office 365 work or school account username, click Next.

    022620 2358 HowtousePow7 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  9. In the Sign into your account dialog box, type your Office 365 work or school account password, click Sign in.

    022620 2358 HowtousePow8 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  10. If you are using MFA, follow the instructions in the additional dialog boxes to provide more authentication information, such as a verification code.

    022620 2358 HowtousePow9 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  11. Make sure there are no errors on the Windows PowerShell prompt.

    022620 2358 HowtousePow10 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  12. Using following PowerShell cmdlet to view your available licensing plans.
    
    
    Get-MsolAccountSku
    
    
    

    022620 2358 HowtousePow11 - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

  13. To use following PowerShell cmdlets to disable TEAM for all users.
    
    
    $acctSKU="reseller-account"
    
    
    $x = New-MsolLicenseOptions -AccountSkuId $acctSKU -DisabledPlans "TEAMS_COMMERCIAL_TRIAL"
    
    
    Get-MsolUser | Where-Object {$_.licenses[0].AccountSku.SkuPartNumber -eq  ($acctSKU).Substring($acctSKU.IndexOf(":")+1,  $acctSKU.Length-$acctSKU.IndexOf(":")-1) -and $_.IsLicensed -eq $True} |  Set-MsolUserLicense -LicenseOptions $x
    
    
    

Hope you enjoy this post.

Cary Sun @SifuSun

ca16fbd3199de5f66b829b87082fb970?s=80&d=retro&r=g - How to use PowerShell cmdlets to disable TEAM for all users of Office 365 #PowerShell #TEAM #Office365 #mvphour

Author: Cary Sun

Cary Sun is an Principal Consultant, He has a strong background specializing in datacenter and deployment solutions, and has spent over 20 years in the planning, design, and implementation of network technologies and Management and system integration.He hold CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1997.Cary is also a Microsoft Most Valuable Professional (MVP) and Cisco Champion, He is a published author with serveral titles, include blogs on Checkyourlogs.net, author for many books. Specialties: CCIE /CCNA / MCSE / MCITP / MCTS / MCSA / Solution Expert / CCA
Blog:
http://www.carysun.com http://www.checkyourlogs.net
Twitter:@SifuSun

About Cary Sun

Cary Sun is an Principal Consultant, He has a strong background specializing in datacenter and deployment solutions, and has spent over 20 years in the planning, design, and implementation of network technologies and Management and system integration.He hold CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1997.Cary is also a Microsoft Most Valuable Professional (MVP) and Cisco Champion, He is a published author with serveral titles, include blogs on Checkyourlogs.net, author for many books. Specialties: CCIE /CCNA / MCSE / MCITP / MCTS / MCSA / Solution Expert / CCA Blog: http://www.carysun.com http://www.checkyourlogs.net Twitter:@SifuSun

Leave a Reply