Partager via


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

 

Returns a security identifier for the specified computer.

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

Syntax

public string GetSid(
    string userName,
    string password,
    string machineName,
    bool bForce
)
public:
String^ GetSid(
    String^ userName,
    String^ password,
    String^ machineName,
    bool bForce
)
Public Function GetSid (
    userName As String,
    password As String,
    machineName As String,
    bForce As Boolean
) As String

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 security identifier is obtained.

  • bForce
    Type: System.Boolean

    true to force the server to overwrite the computer account; otherwise, false.

Return Value

Type: System.String

Returns String.

See Also

MachineIdentityManager Class
Microsoft.WindowsServerSolutions.Devices.Identity Namespace

Return to top