Detecting whether the computer is a Domain Controller
-
09-12-2019 - |
Question
How do I get information whether the system is configured as domain controller or not programatically on windows.
La solution
You can avoid the HKLM read, GetVersionEx
's OSVERSIONINFOEX.wProductType
will equal VER_NT_DOMAIN_CONTROLLER
Autres conseils
Examine the registry key HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions\ProductType. A domain controller will have the value LanmanNT. LINK
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow