vSphere 6.0 CLI commands fail with the error: "bin is not recognized as an internal or external command"
search cancel

vSphere 6.0 CLI commands fail with the error: "bin is not recognized as an internal or external command"

book

Article ID: 339649

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Executing vSphere CLI for vSphere 6.0 commands fail with the error:

    "C:\Program Files (x86)\VMware\VMware vSphere CLI\bin" is not recognized as an internal or external command,
    operable program or batch file.


  • In a command prompt, when you change directory to C:\Program Files (x86)\VMware\VMware vSphere CLI\bin and run the commands they succeed.
Note: This issue does not affect vCLI 5.5 and earlier releases, only vCLI 6.0 is affected.


Environment

VMware vSphere ESXi 6.0
VMware vSphere ESXi 6.5

Cause

This issue is caused as the installation does not set the vSphere CLI for vSphere 6.0 path correctly, in the system environment variables.

Resolution

This issue is resolved in vCenter Server 6.5.x, available at VMware Downloads.

To work around this issue in previous version, update the PATH variable to include vSphere CLI for vSphere 6.0.

The default path is: PATH="C:\Program Files (x86)\VMware\VMware vSphere CLI\bin";"C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin";%PATH%

Additional Information

For more information, see vSphere CLI for vSphere 6.0.
vSphere 6.0 CLI コマンドが次のエラーで失敗する:「ビンが内部または外部コマンドとして認識されません (bin is not recognized as an internal or external command)」
vSphere 6.0 CLI 命令失败并显示以下错误:“无法将 bin 识别为内部或外部命令 (bin is not recognized as an internal or external command)”