Hmmm... the hard-coded user name works for me. [Big Grin]

My GetSID UDF requires a special DLL to be registered. It is fine for admin scripts but if it's logon scripting you are after, there are other similar UFDs that simply mine the SID out of the local registry.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.