Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the certification for the specified dns host name and netbios name.
Namespace: Microsoft.WindowsServerSolutions.Devices.Identity
Assembly: MachineIdentityObjectModel (in MachineIdentityObjectModel.dll)
Syntax
public static X509Certificate2 GetCert(
string serverName,
string dnsHostName,
string netbiosName,
string userName,
string password,
bool bForce
)
public:
static X509Certificate2^ GetCert(
String^ serverName,
String^ dnsHostName,
String^ netbiosName,
String^ userName,
String^ password,
bool bForce
)
Public Shared Function GetCert (
serverName As String,
dnsHostName As String,
netbiosName As String,
userName As String,
password As String,
bForce As Boolean
) As X509Certificate2
Parameters
serverName
Type: System.StringThe name of the server to be contacted.
userName
Type: System.StringThe user name to use on the server.
dnsHostName
Type: System.StringThe DNS host name.
netbiosName
Type: System.StringThe net BIOS name.
password
Type: System.StringThe password for the user name.
bForce
Type: System.Booleantrue to force the server to overwrite the computer account; otherwise, false.
Return Value
Type: System.Security.Cryptography.X509Certificates.X509Certificate2
A X509Certificate2 object that specifies the certification.
See Also
GetCert Overload
MachineIdentityManager Class
Microsoft.WindowsServerSolutions.Devices.Identity Namespace
Return to top