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
#Import the Azure AD Internals module. | |
Import-Module AADInternals | |
#Users to process | |
$Users = import-csv c:\temp\users.csv | |
foreach($user in $users){ | |
$password = ConvertTo-SecureString $user.password -AsPlainText -Force | |
$Cred = New-Object System.Management.Automation.PSCredential -ArgumentList ($($user.upn), $password) |