Doing the MSc dissertation in another university

B

Good Afternoon,
I am currently student in MSc. I have nearly finished my taught modules and I already know that I will have distinction for my PgD. I am not sure that I will be able to do the dissertation and therefore being awarded MSc. Could you please tell me if it is possible to do only the dissertation in another university, in another time to get awarded MSc or if they would always ask that I pass again both, taught module and disseration?
Thank you in advance for your help and your answers.
Best Regards

37368