Microsoft Deployment Toolkit
Documentation Library HRESULT HasAccess(LPCTSTR username, LPCTSTR password, LPCTSTR domain, LPCTSTR computerName, LPCTSTR accountDomain) |
This method verifies whether a set of credentials has read/write access to the computer object in AD DS, as shown in Table 11.
Table 11. HResult HasAccess
HRESULT |
Description |
S_OK |
The user has access |
E_FAIL |
The user does not have access. Check the log file for additional information. |
Related Topics