win32security.LsaQueryInformationPolicy

LsaQueryInformationPolicy(PolicyHandle, InformationClass)

Retrieves information from the policy handle

Parameters

PolicyHandle : PyLSA_HANDLE

An LSA policy handle as returned by win32security::LsaOpenPolicy

InformationClass : int

POLICY_INFORMATION_CLASS value

POLICY_INFORMATION_CLASS value Return type


PolicyAuditEventsInformationreturns 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
PolicyDnsDomainInformationReturns a tuple representing a POLICY_DNS_DOMAIN_INFO struct
PolicyPrimaryDomainInformationReturns name and SID of primary domain
PolicyAccountDomainInformationReturns name and SID of account domain
PolicyLsaServerRoleInformationReturns an int, one of PolicyServerRoleBackup, PolicyServerRolePrimary
PolicyModificationInformationReturns modification serial nbr and modified time of Lsa database