Aye, an administrative script. that is, you run it from your computer, and via queries or just remote-management channels things gets carried out on the remote computer. There should be UDF's laying around.
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!