Yeah registry values had me a bit stumped, I managed to get my script working, my issue was that the batch file I called seemed to make the whole script loop, I ended up copying it to a network share and running it from there, it now works, v strange. Thanks for your post I'll run wth that next...