• Wow, long time since anyone has posted anything here! But the script was awesome except for one little thing...line 84: exit 0. I tried to run the script on a brand new installation and for some reason I got an error message at some point. I was looking closely as the script was running but it all went by so fast so couldn't see exactly where it went wrong and when the script was finished the exit command closed my window so I was unable to figure out exactly what had went wrong.

    Not having done this before it took me "some time" (not too long actually) to figure out what went wrong and it was the ALTER DATABASE mssqlsystemresource MODIFY FILE query that had gone wrong and I had to do it manually to get sql server up again.

    In conclusion I'm really happy with the script, it made it really easy for me to move the system databases...I would only remove line 84 next time I run it 🙂