Most of the time, this works. Now that the system is disinfected, I'm checking over the contents and making sure they are up to date, and changing all passwords. And ta-daaaa, everything is good to go!
Sometimes this might not even work, so you would have to find out the program and use tutorials to help you remove it manually. And if this fails too, you would have to recover whatever is possible, reformat the hard drive, and reinstall the operating systems and applications. That is the last step to do because it might not end up too good.