I just ran into this dying issue, seeing how most of our servers are now 2008. but there is a hot fix that will get you back up and running http://support.microsoft.com/kb/947870 I had this issue and then after installing the hotfix I ran the same script without making changes and it worked perfectly.