Partager via


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

 

Asynchronously returns a security identifier for the specified computer.

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

Syntax

public void GetSidAsync(
    string userName,
    string password,
    string machineName,
    bool bForce
)
public:
void GetSidAsync(
    String^ userName,
    String^ password,
    String^ machineName,
    bool bForce
)
Public Sub GetSidAsync (
    userName As String,
    password As String,
    machineName As String,
    bForce As Boolean
)

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.

See Also

MachineIdentityManager Class
Microsoft.WindowsServerSolutions.Devices.Identity Namespace

Return to top