Gsudo, the open-source alternative by Gerardo Grignoli, has been providing sudo features on Windows long before Microsoft ...
That's it. Exit the file and save over the existing one, and you've got an immutable OS in that VM. When you boot it from now ...