win32security.LsaQueryInformationPolicy
LsaQueryInformationPolicy(PolicyHandle, InformationClass)
Retrieves information from the policy handle
Parameters
POLICY_INFORMATION_CLASS value | Return type |
PolicyAuditEventsInformation | returns tuple of (boolean,(int,...)) Tuple consists of a boolean indicating if auditing is enabled, and a tuple of ints, indexed by POLICY_AUDIT_EVENT_TYPE values, containing a combination of POLICY_AUDIT_EVENT_UNCHANGED, POLICY_AUDIT_EVENT_SUCCESS, POLICY_AUDIT_EVENT_FAILURE, POLICY_AUDIT_EVENT_NONE |
PolicyDnsDomainInformation | Returns a tuple representing a POLICY_DNS_DOMAIN_INFO struct |
PolicyPrimaryDomainInformation | Returns name and SID of primary domain |
PolicyAccountDomainInformation | Returns name and SID of account domain |
PolicyLsaServerRoleInformation | Returns an int, one of PolicyServerRoleBackup, PolicyServerRolePrimary |
PolicyModificationInformation | Returns modification serial nbr and modified time of Lsa database |