HOTSPOT
A company has an Office 365 tenant. You install the Microsoft Azure Active Directory module for Windows
PowerShell.
An employee leaves the company. The employee’s account is named user1@contoso.com.
You need to hard delete the user’s account.
How should you complete the relevant Windows PowerShell commands? To answer, select the appropriate
Windows PowerShell segments from each list in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Explanation:
https://docs.microsoft.com/en-us/powershell/module/msonline/remove-msoluser?view=azureadps-
1.0
In some cases, you may want to delete a user’s account entirely, bypassing the Azure Active Directory Recycle Bin. This is called a “hard delete.” You can hard delete a specific user as long as you know their UPN. For example, to hard delete the user with the UPN don.funk@adatum346ER.onmicrosoft.com, you would issue the following command:
Remove-MsolUser –UserPrincipalName don.funk@adatum346ER.onmicrosoft.com –Force
0
0
I think force is only used for
-Force
Indicates that this cmdlet does not prompt you for confirmation.
0
0
https://docs.microsoft.com/en-us/powershell/module/msonline/remove-msoluser?view=azureadps-1.0
Remove a user from the Recycle Bin PowerShell
Remove-MsolUser -UserPrincipalName “davidchew@contoso.com” -RemoveFromRecycleBin
The previous command removes the user “From the Recycle Bin”, meaning that it needs to already be deleted.
So the correct answer should be:
Remove-MsolUser -userprincipalname user1@contoso.com -Force
Remove-MsolUser -userprincipalname user1@contoso.com -RemoveFromRecycleBin
First command soft deletes the user
Second command hard deletes the user
You can’t combine both because the second command looks for the user in the Recycle Bin
1
0
The answer is correct.
https://technet.microsoft.com/en-us/library/dn186233(v=exchg.150).aspx#BKMK_harddeleted
0
0
RemoveFromRecycleBin
Indicates that this cmdlet permanently removes a deleted user from the recycle bin. This operation which can be applied only to deleted users. When this operation has been completed, you will not be able to recover the user by using the Restore-MsolUser cmdlet.
Can only be used when user is allready soft deleted so it is the -force
0
0
The original answer is correct
The link https://technet.microsoft.com/en-us/library/dn186233(v=exchg.150).aspx#BKMK_harddeleted only talk about mailboxes
-Force is to prevent prompting, so that is surely not the answer!
-RemoveFromRecycleBin has to do with permanently deleting a user account.
O365 is correct
1
0
exavtly correct. I tried this in my environment.
0
0
From 70-346 REF BOOK
In some cases, you want to delete a user account entirely, bypassing the Azure Active Directory Recycle Bin. This is called a “hard delete.” You can hard delete a specific user as long as you know their UPN.
To hard delete the user with the UPN don.funk@adatum346ER.onmicrosoft.com you would issue the following command:
Remove-MsolUser –UserPrincipalName don.funk@adatum346ER.onmicrosoft.com –Force
1
0
wrong!!!
0
0
Hard deleting a user is a 2-step process
1. Soft delete: (you can also delete the user in the GUI)
Remove-MsolUser -userprincipalname user1@contoso.com -Force
2. Hard delete (only powershell)
Remove-MsolUser -userprincipalname user1@contoso.com -RemoveFromRecycleBin
So it says nothing in the question that the user is already soft deleted.
So I would say the correct answer is:
Remove-MsolUser -userprincipalname user1@contoso.com -Force
0
0
wrong
0
0
the given answer is correct. https://msdn.microsoft.com/library/azure/dn194132.aspx
https://practical365.com/exchange-server/permanently-remove-deleted-users-office-365/
0
0