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.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 security identifier is obtained.
bForce
Type: System.Booleantrue 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