Microsoft Entra ID Flags & Options
Identity, sign-in, Conditional Access and app registrations in Microsoft 365 and Azure.All Microsoft Entra ID pages
- az login --allow-no-subscriptions: sign in to an Entra tenant without Azure subscriptionsaz login --allow-no-subscriptions signs in to an Entra tenant that has no Azure subscription, for tenant-level commands such as az ad. Related az login options.
- dsregcmd /status: check if a device is Entra joined, hybrid joined or registereddsregcmd /status shows whether a Windows device is Microsoft Entra joined, hybrid joined or registered, plus PRT and Windows Hello state. How to read it.
- Update-MgUser -PasswordPolicies DisablePasswordExpiration: password never expiresUpdate-MgUser -PasswordPolicies DisablePasswordExpiration makes an Entra ID password never expire; None restores it. Values, synced users and the 90-day trap.
- Update-MgUser -UsageLocation: set the country code required for licensesUpdate-MgUser -UsageLocation sets the two-letter country code Microsoft 365 needs before a license can be assigned. Find users without it and set it in bulk.