Monday, April 27, 2020

Change office 365 user usagelocation using powershell


1
2
3
4
5
6
7
#http://hilite.me/
# Find the Country code from  https://www.iso.org/obp/ui/#search/code/
# Look for column alpha-2 (A2) two-letter country or region code

$userCredential = Get-Credential
Connect-MsolService -Credential $userCredential
Set-MsolUser -UserPrincipalName sanjiv.test@test.com -UsageLocation "FR"

No comments:

Post a Comment

HTML

Script:

JS