WSMAN_AUTHENTICATION_CREDENTIALS structure (wsman.h)
Defines the authentication method and the credentials used for server or proxy authentication.
Syntax
typedef struct _WSMAN_AUTHENTICATION_CREDENTIALS {
DWORD authenticationMechanism;
union {
WSMAN_USERNAME_PASSWORD_CREDS userAccount;
PCWSTR certificateThumbprint;
};
} WSMAN_AUTHENTICATION_CREDENTIALS;
Members
authenticationMechanism
Defines the authentication mechanism. This member can be set to zero. If it is set to zero, the WinRM client will choose between Kerberos and Negotiate. If it is not set to zero, this member must be one of the values of the WSManAuthenticationFlags enumeration.
userAccount
Defines the credentials used for authentication. See WSMAN_USERNAME_PASSWORD_CREDS for more information.
certificateThumbprint
Defines the certificate thumbprint.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Header | wsman.h |
Redistributable | Windows Management Framework on Windows Server 2008 with SP2, Windows Vista with SP1, and Windows Vista with SP2 |