パスワードリセット(Graph)
CautionReset cloud passwords
Invoke-MgGraphRequest -Method POST -Uri "/v1.0/users/<upn>/authentication/methods/<id>/resetPassword" -Body @{newPassword='<temp>'}
Resets passwords via Graph — the most common helpdesk task and a favorite social-engineering target. Verify identity hard.
Examples
Get-MgUserAuthenticationMethod -UserId [email protected]Find the method ID first
Syntax
Invoke-MgGraphRequest POST /users/{id}/authentication/methods/{id}/resetPassword (要UserAuthenticationMethod.ReadWrite.All)
Before you run it
Strict identity checks; force change at next sign-in.
Related commands
- Get-MgUserAuthenticationMethodMFA methods
- サインインのブロックBlock sign-in now
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store