Creating a user
Most tenant admins and other IT professionals prefer to automate the creation of new users in a tenant. This requires passing certain values between whatever Human Resources or onboarding system is being used to PowerShell. However, even if you are not looking to automate this process and are tired of clicking through a ton of screens to enter information, this recipe provides admins an easy method of getting a user provisioned.
Using the skills learned in the Setting up the PowerShell environment recipe from Chapter 1, Office 365 Setup and Basic Administration, connect to your Office 365 tenant via PowerShell.
How to do it…
- Enter the following command into your PowerShell or ISE window, replacing the details of
New-MsolUser -UserPrincipalName [email protected] -DisplayName "Test Account" -FirstName "Test" -LastName ...