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
serverName
Type: System.StringThe name of the server.
userName
Type: System.StringThe user name that is used to log on to the computer.
password
Type: System.StringThe password for the user name.
machineName
Type: System.StringThe name of the computer from which the status is obtained.
isAdmin
Type: System.Booleantrue 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