Quick thing about MSDN licensing - End users who are doing acceptance TESTING do not require a license. To quote Microsoft's licensing terms:
Acceptance Testing and Feedback. Your end users may access the software to perform acceptance tests on
your programs or to provide feedback on your programs.
I also don't think everyone needs the same level of license; as long as the developers had a license that covers all of the software that is being used, you are fine. Do you have a source for that claim?
I agree that MSDN has more restrictions, but if it is used for development and testing, it is nice. And I am not sure about that copying data from prod to test comment. I have never read that that was not allowed and when you are doing testing, you would likely need some live data to work with. Do you have a source for that comment?
The above is all just my opinion on what you should do.
As with all advice you find on a random internet forum - you shouldn't blindly follow it. Always test on a test server to see if there is negative side effects before making changes to live!
I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.