I have several Virtual Machines running, all running Windows 7 Professional SP1 x86.
I am working on a PowerShell 2.0 script that does the following
- Checks if a target virtual machine is running
- Shuts down virtual machine if running
- cleans up old snapshot
- creates new snapshot
- Clones the current state of the machine
- Restart Windows
- Log into Windows
I have code that successfully checks if the vm is running, stops the virtual machine, clones the machine, and starts the machine. I will be adding the snapshot routine next.
What I now need to do is to wait for the Windows CTRL+ALT+DEL prompt and go through a process to log into windows. I do not see where the `vmrun start [drive]:\[PathToVMX].vmx` command has a method to allow log into for the OS.
How have others here handled this scenario? I am sure that I am not the first to attempt to startup a virtual machine from a command prompt and log into the system.
Thank you.