Hi Glenn, thank you for your input on embedding the UDFs. I was trying to keep the script short while testing, and have already embedded them in the production version.

Back to my second question on detecting logon/logoff events. Can you give me a specific example of what you mean? I am looking for some Windows event (without combing the event log) that defines a login status or a logout status, so I can pass this to the script.