win32security.DsGetDcName

dict = DsGetDcName(computerName, domainName , domainGUID , siteName , flags )

Returns the name of a domain controller (DC) in a specified domain. You can supply DC selection criteria to this function to indicate preference for a DC with particular characteristics.

Parameters

computerName=None : PyUnicode

domainName=None : PyUnicode

domainGUID=None : PyIID

siteName=None : PyUnicode

flags=0 : int

Comments

This function supports keyword arguments.