PrepAway - Latest Free Exam Questions & Answers

/en-us/powershell/module/addsadministration/set-aduser?view=win10-ps…

You manage Active Directory Domain Services (AD DS) for a company. You assign Office 365 licenses to all users.

You implement Microsoft Azure Active Directory (Azure

AD) Connect.

Your company terminates an employee.

You need to ensure that the terminated employee can no longer access any Office 365 resources.

Which Windows PowerShell cmdlet should you run?

A.

Set-AdUser

B.

Remove-MsolServicePrincipalCredential

C.

S

et-MsolUser

D.

Remove-MsolServicePrincipal

Explanation:

If your organization synchronizes user accounts to Office 365 from a local Active Directory environment, you must delete those user accounts in your local Active Directory service. You can-

t delete or restore them in Office 365. Therefore, you have to make use of the Set-AdUser cmdlet.

References: https://support.office.com/en-us/article/remove-a-former-employee-from-office-365-44d96212-4d90-4027-9aa9-a95eddb367d1

https://docs.microsoft.com

/en-us/powershell/module/addsadministration/set-aduser?view=win10-ps


Leave a Reply