Hi JAMES, Clinton,
Thank you for posting in Q&A forum.
i want to add an additional measure that if an account starts with a certain letter that it is added to the deny login group.
AD is not able to implement this function, I think this requires you to edit the relevant script to do so.
Some references of WMI for you to refer:
Windows Management Instrumentation - Win32 apps | Microsoft Learn
https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page
Using WMI - Win32 apps | Microsoft Learn
https://learn.microsoft.com/en-us/windows/win32/wmisdk/using-wmi
Hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.