Online Help > PowerShell Scripting

Remove-RDMUser

SYNOPSIS

Delete an existing user.

 

SYNTAX

Remove-RDMUser -DeleteSQLLogin [DeleteSQLLogin] <SwitchParameter> -Force [Force] <SwitchParameter> -ID [ID] <Guid> [<CommonParameters>]

 

DESCRIPTION

You will be prompted to confirm the delete.

 

PARAMETERS

  -DeleteSQLLogin <SwitchParameter>

Forces removal of the SQL Login without confirmation by the user. Optional.

 

  -Force <SwitchParameter>

Forces removal of the user without confirmation by the user. Optional.

 

  -ID <Guid>

(Required) Specifies the GUID of the user to be deleted from.

 

Must be a valid GUID, in the form {00000000-0000-0000-0000-000000000000}.

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

For more information, type "Get-Help Remove-RDMUser -detailed". For technical information, type "Get-Help Remove-RDMUser -full".

 

EXAMPLE 1

PS C:\> $list = Get-User; Remove-RDMUser $list[1].ID

 

Retrieves the list of available users, deletes user at index 1.

 

EXAMPLE 2

PS C:\> Remove-RDMUser "{00000000-0000-0000-0000-000000000000}"

 

Delete security group with ID = "{00000000-0000-0000-0000-000000000000}".

 

EXAMPLE 3

PS C:\> Remove-RDMUser -ID "{00000000-0000-0000-0000-000000000000}" -Force

 

Force delete of the user with ID = "{00000000-0000-0000-0000-000000000000}".

 

RELATED LINKS

Get-RDMUser

New-RDMUser

New-RDMUser

Remove-RDMUser