< Back

Remove-iBMCUser

Tue Jan 14, 2020 3:04 am

NAME Remove-iBMCUser



SYNOPSIS

Remove an existing iBMC user account.





SYNTAX

Remove-iBMCUser [-Session] <RedfishSession[]> [-Username] <String[]> [<CommonParameters>]





DESCRIPTION

Remove an existing iBMC user account identified by "Username" parameter





PARAMETERS

-Session <RedfishSession[]>

iBMC redfish session object which is created by Connect-iBMC cmdlet.

A session object identifies an iBMC server to which this cmdlet will be executed.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Username <String[]>

Username specifies the user to be removed.



Required? true

Position? 2

Default value

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

None

Nothing returned if cmdlet executes successfully.

In case of an error or warning, exception will be returned.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove a iBMC user account that has a username "user1"



PS C:\\> $credential = Get-Credential

PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert

PS C:\\> Remove-iBMCUser -Session $session -Username user1









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Remove a iBMC user account that has a username "user1"



PS C:\\> $credential = Get-Credential

PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert

PS C:\\> ,$session | Remove-iBMCUser -Username user1











RELATED LINKS

https://github.com/Huawei/Huawei-iBMC-Cmdlets



Add-iBMCUser

Get-iBMCUser

Set-iBMCUser

Connect-iBMC

Disconnect-iBMC