David,
We have been using the script for quite some time now and all has been working great. Thanks for your efforts. It seems though ever since we upgraded to 2010 "Detach from Central" hasn't been working for me. It opens up the file as if you have selected "Open all Worksets". Has anyone else experience this in with 2010?