Microsoft Office 365: Set New Password All Domain
##Install Module for Manage Resource in AzureAD##
Install-Module -Name AzureAD -Force
##User Credential##
$UserCredential = Get-Credential
Connect-MsolService -Credential $UserCredential
Connect-MsolService
##Get All Users in Domain##
##Force Set Password##
Get-msoluser -all -DomainName "test.contoso.co.th" | Set-MsolUserPassword -NewPassword 'Contoso$@!345' -ForceChangePassword:$TRUE
ไม่มีความคิดเห็น:
แสดงความคิดเห็น