Powershell Script to Assign Bulk Licenses to Office 365 Users (Method-1) | #powershell #license

preview_player
Показать описание
Hi Friends, Welcome to My Channel.In this video we will get to know Powershell Script to Assign Bulk Licenses to Office 365 Users (Method-1).

We will also get to know how to create a command and edit the command as per our requirement.
=====================================

Powershell Script to Assign Bulk Licenses to Office 365 Users (Method-1)

Assign Bulk Licenses to Office 365 Users
#powershell
#office365
#microsoft365
#license
#o365
#powershellscripting

############ Assign License to Bulk Users ################

# Method 1

Import-Module MSOnline
Connect-MsolService

Get-MsolAccountSku

# To View the unlicensed user details:

Get-MsolUser -UnlicensedUsersOnly


#To assign the US location to all unlicensed of your tenant users:

Get-MsolUser -UnlicensedUsersOnly | Set-MsolUser -UsageLocation US

#To verify the results, use the following command:

Get-MsolUser -All | Select DisplayName,UsageLocation

# Once the location is assigned either through PowerShell, you can assign licenses.
# The following command would assign a O365_BUSINESS_PREMIUM license to all users in the US only:

Get-MsolUser -All -UsageLocation ‘US’ | Set-MsolUserLicense -AddLicenses “techreview14:O365_BUSINESS_PREMIUM”

--------------------------------------------------------------------------
For any other Questions/Queries/Doubt/Issue or more information please create a FREE Service Request from the Admin Portal.

Once created a Microsoft 365 support Representative should reach you within 15 minutes.
Рекомендации по теме