Skip to content

Latest commit

 

History

History
104 lines (77 loc) · 2.08 KB

File metadata and controls

104 lines (77 loc) · 2.08 KB
external help file Module Name ms.assetid ms.custom ms.reviewer online version schema
Microsoft.Open.AzureAD16.Graph.PowerShell.dll-Help.xml
AzureADPreview
92AA880E-6C9D-4234-86D3-239CA64E245E
iamfeature=PowerShell
rodejo
2.0.0

Remove-AzureADUser

SYNOPSIS

Removes a user.

SYNTAX

Remove-AzureADUser -ObjectId <String> [-InformationAction <ActionPreference>] [-InformationVariable <String>]
 [<CommonParameters>]

DESCRIPTION

The Remove-AzureADUser cmdlet removes a user in Azure Active Directory (AD).

EXAMPLES

Example 1: Remove a user

PS C:\>Remove-AzureADUser -ObjectId "TestUser@example.com"

This command removes the specified user in Azure AD.

PARAMETERS

-InformationAction

Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InformationVariable

Specifies an information variable.

Type: String
Parameter Sets: (All)
Aliases: iv

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ObjectId

Specifies the ID of a user (as a UPN or ObjectId) in Azure AD.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Get-AzureADUser

New-AzureADUser

Set-AzureADUser