Setup
Re-run the scan
Updating the AD scan is manual: each new run must be initiated manually. The downloaded script is only valid for 24 hours: after this time, you must download it again.
The scan can be rerun as many times as necessary:
Under normal operation, we recommend running it monthly.
During infrastructure security hardening phases, it can be run more frequently to verify that misconfigurations have been corrected.
Debugging the AD scan
Script closure after execution
This means that script execution is restricted in the terminal. Here is a three-step solution:
Download the script and go to
Downloads, then typepowershell -ep bypassin the search bar.The PowerShell console should open automatically. Once it does, type
&and press Tab until the correct script file is visible.Press Enter.
PingCastle interruption
In this case, ensure that all of these conditions are met:
You have an internet connection to your domain controller.
Your firewall or proxy is not blocking access to
api.prod.ad-scan.cyber.stoik.io,ad-scan-prod-pingcastle-zip.s3.eu-west-1.amazonaws.com, andad-scan-prod-reports.s3.eu-west-1.amazonaws.com.SSL inspection is disabled for these hosts. A proxy that inspects or rewrites HTTPS traffic to the S3 buckets breaks the presigned download URL and causes the PingCastle download to fail or time out, even when DNS and TCP connectivity look fine.
Delete data after script execution
If you wish to delete the data after the script has run, execute the following command:
Last updated
Was this helpful?


