To batch unlock the accounts that locked by Microsoft ADFS Extranet Smart Lockout (ESL) https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/operations/configure-ad-fs-extranet-smart-lockout-protection
Simply run "ADFS_ESL_Checking.ps1" on your ADFS Primary Server (i.e. you may seperate function 1 and run it on the server with DC admin right directly)