You also haven't stated whether you want this to run from a logon script or an admin script. I see you finally dribbled out a bit more info, mainly that "All users have admin rights".

Once agian, I ask... what part of the code are you having problems with? You said "I don't really have a clue where to start". Howard gave you a start with what little info you provided.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.