Thanks Mart - will this be visible to the users that run the script? (as in will they see a separate Command Prompt window appear during login?

Also I take it that code can be placed anywhere in the script?

Thanks for your help with this