Partager via


MachineIdentityManager.GetMachineStatus Method (String, String, String, String, Boolean)

 

Returns the status of the computer.

Namespace:   Microsoft.WindowsServerSolutions.Devices.Identity
Assembly:  MachineIdentityObjectModel (in MachineIdentityObjectModel.dll)

Syntax

public static GetMachineStatusType GetMachineStatus(
    string serverName,
    string userName,
    string password,
    string machineName,
    out bool isAdmin
)
public:
static GetMachineStatusType^ GetMachineStatus(
    String^ serverName,
    String^ userName,
    String^ password,
    String^ machineName,
    [OutAttribute] bool% isAdmin
)
Public Shared Function GetMachineStatus (
    serverName As String,
    userName As String,
    password As String,
    machineName As String,
    <OutAttribute> ByRef isAdmin As Boolean
) As GetMachineStatusType

Parameters

  • userName
    Type: System.String

    The user name that is used to log on to the computer.

  • machineName
    Type: System.String

    The name of the computer from which the status is obtained.

  • isAdmin
    Type: System.Boolean

    true if the user account has administrator rights; otherwise, false.

Return Value

Type: Microsoft.WindowsServerSolutions.Devices.Identity.GetMachineStatusType

An instance of MachineStatus.

See Also

GetMachineStatus Overload
MachineIdentityManager Class
Microsoft.WindowsServerSolutions.Devices.Identity Namespace

Return to top