Forum Discussion
Andy Kw
Feb 02, 2018Brass Contributor
Why the set-user does not show UserPrincipalName as an option?
Hi,
I tried to have the option UserPrincipalName when using the cmdlet Set-User by using tab but it is not appearing.
This is my script to connect to my exchange online
########...
- Feb 02, 2018
Well, since you are already using the MSOnline module, the Set-MsolUserPrincipalName should be easier to get to.
Pablo R. Ortiz
Feb 02, 2018Steel Contributor
Use Set-AzureADUser instead:
https://docs.microsoft.com/en-us/powershell/module/azuread/set-azureaduser?view=azureadps-2.0
- VasilMichevFeb 02, 2018MVP
Well, since you are already using the MSOnline module, the Set-MsolUserPrincipalName should be easier to get to.