Removes a Microsoft Online Services user.
Syntax
Remove-MSOnlineUser -Credential
<PSCredential> -Identity <String>
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
|
Credential |
Yes |
System.Management.Automation.PSCredential |
Specific credentials used to access Microsoft Online Services. |
|
Identity |
Yes |
System.string |
Identity of the user object that will be removed. Format can be an SMTP address, a User Principal Name, or a Source Anchor. |
Example
This example removes a user based on properties identity and credential passed on the command line:
Remove-MSOnlineUser –Identity Erik@adatum.com
–Credential $Cred_object
Comments
None.