パスワードリセット(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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store