There is no truly secure way to do this in a logon script and should therefor be done with a central admin script. If you are willing to compromise security, you can find many posts on hte subject.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.