Trying to VBoxManage in order to manage your cirtual machines, but already stuck at the first step? Here’s how to fix it.
‘VBoxManage’ is not recognized as an internal or external command, operable program or batch file.
If you type VBoxManage in the command prompt, you expect a list of commands to pop up. However, when the command is not added to the PATH, it just won’t work. This is the list of directories of which Windows can run executables from. VBoxManage.exe is the one you are trying to launch, but Windows has not identified the directory of this program.
The solutions is simple. Browse to the directory of your VirtualBox installation, and copy the path name. For me this is ‘C:\Program Files\Oracle\VirtualBox’. Adding this directory to the PATH variable is the easiest by simply running the set command in your command prompt, as follows:
set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox"
If you now type set again in the command prompt, it will print out all the directories to which the variable has access.
Take notice, if you want to add this command permanently, please take the following steps:
- Open Start
- Click (or type) Control Panel
- Click the System icon.
- Click Advanced system settings and then Environment Variables
- Search for the line under System variables that corresponds to the “Path” variable and select it
- Click Edit
- Go to the very end of the text listed in the Variable value text field
- Add the location of the bin folder of the installation to the end.
- Remember, the directories listed in the path variable should be separated by semicolons.
- Click OK when you are done (multiple times).
Congratulations, you can now use the VBoxManage command in your Windows command prompt.