Skip to content

GPO functions (CLI mode)

the-useless-one edited this page Aug 24, 2016 · 1 revision

get-netgpo

usage: pywerview.py get-netgpo [-h] [-w DOMAIN] -u USER [-p PASSWORD]
                               [--hashes LMHASH:NTHASH] -t DOMAIN_CONTROLLER
                               [--gponame QUERIED_GPONAME]
                               [--displayname QUERIED_DISPLAYNAME]
                               [-d QUERIED_DOMAIN] [-a ADS_PATH]

optional arguments:
  -h, --help            show this help message and exit
  -w DOMAIN, --workgroup DOMAIN
                        Name of the domain we authenticate with
  -u USER, --user USER  Username used to connect to the Domain Controller
  -p PASSWORD, --password PASSWORD
                        Password associated to the username
  --hashes LMHASH:NTHASH
                        NTLM hashes, format is LMHASH:NTHASH
  -t DOMAIN_CONTROLLER, --dc-ip DOMAIN_CONTROLLER
                        IP address of the Domain Controller to target
  --gponame QUERIED_GPONAME
                        GPO name to query for (wildcards accepted)
  --displayname QUERIED_DISPLAYNAME
                        Display name to query for (wildcards accepted)
  -d QUERIED_DOMAIN, --domain QUERIED_DOMAIN
                        Domain to query
  -a ADS_PATH, --ads-path ADS_PATH
                        Additional ADS path