How to programmatically keep the VM screen on
- For Windows VMs – run: “powercfg /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 0”
- For Linux VMs – run: “xset s off” inside the virtual machine
Source: Programmatically keeping the VM screen on – Ben Armstrong – Site Home – MSDN Blogs