Skip to content

This Python script retrieves and displays fine-grained password policies (FGPPs) applied to users and groups in Active Directory.

License

Notifications You must be signed in to change notification settings

WiseLife42/GetADPSO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This Python script retrieves and displays fine-grained password policies (FGPPs) applied to users and groups in Active Directory. It also displays details of configured PSO, including attributes such as minimum password length, password complexity, lockout duration, etc.

The script performs the following actions:

  • Displays groups with PSO applied.
  • Displays users with PSO applied.
  • Displays details of PSO configured in Active Directory.

Installation

With source :

git clone https://github.com/WiseLife42/GetADPSO
cd GetADPSO/
pip install .

With pip :

pip install GetADPSO

Usage

# getadpso

usage: getadpso [-h] -u USERNAME -p PASSWORD -d DOMAIN [--dc-host DC_HOST] [--kerberos] [--ccache CCACHE] [-v]

Script to retrieve the msDS-ResultantPSO attribute for all users and groups in Active Directory, and show the details of PSO policies.

options:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username for Active Directory
  -p PASSWORD, --password PASSWORD
                        Password for Active Directory
  -d DOMAIN, --domain DOMAIN
                        Domain for Active Directory
  --dc-host DC_HOST     Domain Controller hostname or IP address
  --kerberos            Use Kerberos authentication
  --ccache CCACHE       Path to Kerberos ccache file
  -v, --debug           Enable debug logging for more details

Running with a standard account

image

Running with a standard account (verbose)

image

Running with an administrator account

image

Running with an administrator account (verbose)

image

About

This Python script retrieves and displays fine-grained password policies (FGPPs) applied to users and groups in Active Directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages