The AD script can be downloaded from the below solution article: https://support.freshservice.com/support/solutions/articles/236062-active-directory-integration