If you have installed your VirtualBox virtualization software on a Windows host and are about to start managing it from Powershell or the command line, great!
Wait, is there a show stopper when you run the VBox commands from the command line? Here is the solution!
Error: The term VBoxManage is not recognized as the name of a cmdlet function script file or operableSolution: Go to the VBoxManage location and run the command again, explained below.
If you get the error message VBoxManage is not recognized, the VirtualBox installation is not added to your Windows PATH.
The quick way to run the command successfully is to go to the VirtualBox install location, typically as shown below:
PS C:\> cd "C:\Program Files\Oracle\VirtualBox" PS C:\Program Files\Oracle\VirtualBox>
Then execute the command as follows:
PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage startvm "codetryout-vm" Waiting for VM "codetryout-vm" to power on... VM "codetryout-vm" has been successfully started. PS C:\Program Files\Oracle\VirtualBox>
NotesWe have ran the above steps in PowerShell prompt, similar steps would work in Windows Command line as well.
Hope that was helpful to start with the command line management of VirtualBox. Please let us know if you have more questions.
More for your reference: