- Trước tiên download module Azure PowerShell Azure Active Directory Module for Windows PowerShell
- Kết nối với Azure: connect-msolservice -credential $msolcred [câu lệnh này để cache tài khoản quản trị Azure]
- Sau khi kết nối xong, chạy lệnh sau để xóa bỏ những object conflict
Remove-MsolUser –UserPrincipalName John.Smith@Contoso.com
- Vậy là xong !
English version:
- Grab the Microsoft Online Services Sign-In Assistant for IT Professionals RTW
- Grab the Azure Active Directory Module for Windows PowerShell
- Open the power shell and run this to store your credentials$msolcred = get-credential
- Then run this to connect to Azureconnect-msolservice -credential $msolcred
- Now that you’re all linked up, run this to remove that nasty orphaned object
Remove-MsolUser –UserPrincipalName John.Smith@Contoso.com
- All set!
Comments
Post a Comment