1 : Click on start and search for Task Scheduler or Launch “Run” Window by using Win + R key combination.
2 : Type “taskschd.msc” in Run Window then Press Enter key to launch the “Task Scheduler”
3: Click on Create Task… from right hand side/
4: Enter a name for it, e.g. Kali Startup.
5: Select Run only when user is logged on.
6: Click on Triggers tab.
7: For Begin the task we select At log on.
8: Make sure under the Advanced settings, Enabled is checked, and Delay task for is also checked and uncheck everything else.
9: Delay task for value should be based on your system specifications and speed.
10: Click on OK button.
11: Click on Actions tab.
12: Click on New… button.
13: Make following changes….
Action: Start a program
Program/script: C:\Program Files(x86)\VMware\VMware Workstation\vmware.exe or Path to VMware.
Add arguments (optional): -X “D:\VMware Linux\kali-linux-2020.3-vmware-amd64\Kali-Linux-2020.3-vmware-amd64.vmwarevm\Kali-Linux-2020.3-vmware-amd64.vmx” Path to your Virtual Machine.
- X is to execute.
- So remember to add -X at the start of add arguments.
14: Click on OK button.
15: Click on Conditions tab.
16: Make sure all settings are configured as desired, usually we can leave them as default.
17: Click on Settings tab.
18: Make sure, only Allow task to be run on demand is checked, everything else should be unchecked,
19: Make sure Under the If the task is already running, then the following rule applies:
We set to Do not start a new instance.
20: Click on OK button and enter the password for the current user (Usually The Administrator account will be required)
22 Now we can restart the host machine/Windows 10. The virtual machine will be launched/started automatically.