Created
January 27, 2022 23:50
-
-
Save carlosdoliveira/d457f15b064375f7dce3979a5a43879d to your computer and use it in GitHub Desktop.
Este script permite que você faça um licenciamento em massa dos seus usuários no Office 365
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Seu arquivo CSV deve ter as colunas UserPrincipalName e Licenses. | |
$users=Import-Csv -Path C:\Temp\users.csv | |
foreach ($user in $users) { | |
Write-Host "Atualizando" $user.UserPrincipalName | |
Set-MsolUserLicense -UserPrincipalName $user.UserPrincipalName -AddLicenses $user.Licenses |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment