They help fight computer viruses and block hacking attempts. Virtual machines let IT professionals create secure sandbox environments so they can safely open and examine dangerous files without affecting their device or the rest of the network.