< Back

Get-iBMCUser

Tue Jan 14, 2020 3:00 am

NAME Get-iBMCUser



SYNOPSIS

Get all iBMC user account details





SYNTAX

Get-iBMCUser [-Session] <RedfishSession[]> [<CommonParameters>]





DESCRIPTION

Get all iBMC user account information, excluding password.





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



<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

Array[PSObject[]]

Returns array of the user object array if cmdlet executes successfully.

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





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



PS C:\\>Get all user account infomation for multiple iBMC servers



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

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

PS C:\\> $Users = Get-iBMCUser -Session $sessions

PS C:\\> $Users



Host : 10.1.1.2

Id : 2

Name : User Account

UserName : Administrator

RoleId : Administrator

Locked : False

Enabled : True

Oem : @{Huawei=}



Host : 10.1.1.2

Id : 3

Name : User Account

UserName : root

RoleId : Administrator

Locked : True

Enabled : True

Oem : @{Huawei=}



Host : 10.1.1.2

Id : 4

Name : User Account

UserName : zxh

RoleId : Administrator

Locked : False

Enabled : True

Oem : @{Huawei=}











RELATED LINKS

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



Add-iBMCUser

Set-iBMCUser

Remove-iBMCUser

Connect-iBMC

Disconnect-iBMC