RAZ-3147: AD server scheduled task throws error
- Fixed incorrect variable names and malformed list