Looking to do some checking on login as to whether a user is a member of certain groups and create directories appropriately.

Is there a way to do this via a batch file or login scripts?


PS. I think I used to know how to do this so I may be having a Brain Gastric Event here.