How to Connect and Manage Office 365 Using Remote PowerShell. Bulk Creating, Licensing, and Modifying User Accounts. ==================================================================================================================== 1. Requirements: http://technet.microsoft.com/en-us/library/jj984289%28v=exchg.150%29.aspx 1.1 Microsoft .NET Framework 4.5 (only for Win 7 SP1/Server 2008 R2 SP1) #4.5.2 Offline Installer - All OS x86/x64: http://www.microsoft.com/en-us/download/details.aspx?id=42642 1.2 Windows Management Framework 4.0 (only for Win 7 SP1/Server 2008 R2 SP1) http://www.microsoft.com/en-us/download/details.aspx?id=40855 1.3 Microsoft Online Services Sign-In Assistant for IT Professionals RTW http://www.microsoft.com/en-us/download/details.aspx?id=41950 1.4 The Microsoft Azure Active Directory Module for Windows PowerShell cmdlets (Previously known as the Microsoft Online Services Module for Windows PowerShell cmdlets) http://technet.microsoft.com/en-us/library/jj151815.aspx#BKMK_Requirements 2. Checks 2.1 The current PowerShell version $PSVersionTable 2.2 The Online Services Sign-In Assistant 3. Establish the connection: 3.1 Connect to Office 365 #Use the shortcut or import manually the Azure module Import-Module MSOnline $msolcred = get-credential connect-msolservice -credential $msolcred 3.2 Adding the commands to your PowerShell profile and automating the process $profile test-path $profile new-item $PROFILE.CurrentUserCurrentHost -ItemType file -Force notepad $PROFILE.CurrentUserCurrentHost 4. Create a new user New-MsolUser -FirstName "Barbara" -LastName "Andersen" -DisplayName "Barbara Andersen" -UserPrincipalName "BAndersen@NetoMeter.onmicrosoft.com" -UsageLocation "US" -Password "Passw0rd" 5. Bulk create users 6. Bulk modify and license users Get-MsolAccountSku ######################### # LINK TO PROJECT FILES # ######################### https://www.netometer.com/downloads/office365-155.zip