Microsoft 365 Administrator Expert MS-102 Practice Question
You are preparing a PowerShell script that uses the Microsoft Graph PowerShell SDK to bulk create user accounts in Microsoft Entra ID. For each new employee, the script must create the account as a member user, generate a random temporary password, force the user to change that password at first sign-in, set the usage location to Canada, and block sign-in until their start date. Which combination of properties should you configure in each New-MgUser command to meet the requirements?
The passwordProfile object's forceChangePasswordNextSignIn flag requires the user to change the temporary password the first time they sign in. Setting accountEnabled to $false prevents sign-in until you enable the account later. The usageLocation property must be set to the ISO country code ("CA" for Canada) so that license assignment works correctly. The other options reference non-existent or incorrect property names such as changePasswordAtNextLogin, enforceChangePasswordPolicy, signInBlocked, accountDisabled, country, or officeLocation, none of which satisfy the requirements when calling New-MgUser.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Microsoft Graph PowerShell SDK?
Open an interactive chat with Bash
What does the passwordProfile.forceChangePasswordNextSignIn property do?
Open an interactive chat with Bash
Why is the usageLocation property set to an ISO country code?
Open an interactive chat with Bash
Microsoft 365 Administrator Expert MS-102
Deploy and manage a Microsoft 365 tenant
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .