< Back

Remove-AzureRmADUser

Tue Jan 29, 2019 10:05 pm

NAME Remove-AzureRmADUser



SYNOPSIS

Deletes an active directory user.





SYNTAX

Remove-AzureRmADUser [-DefaultProfile <IAzureContextContainer>] [-Force] -UPNOrObjectId <String> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Deletes an active directory user (work/school account also popularly known as org-id).





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Force [<SwitchParameter>]

If specified, doesn't ask for confirmation for deleting user.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-UPNOrObjectId <String>

The user principal name or the objectId of the user to be deleted.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]





Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS



NOTES









Example 1



PS C:\\> {{ Add example code here }}



{{ Add example description here }}







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... rermaduser

New-AzureRmADUser

Get-AzureRmADUser

Set-AzureRmADUser