# Cmd not recognised-chef bootstrap

**URL:** <https://discourse.chef.io/t/cmd-not-recognised-chef-bootstrap/5508>\
**Category:** Chef Infra (archive)\
**Created:** [July 11, 2014, 6:02am UTC](https://discourse.chef.io/t/cmd-not-recognised-chef-bootstrap/5508 "2014-07-11T06:02:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indra\_k](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@Indra\_k](https://discourse.chef.io/u/Indra_k)\
**Post date:** [July 11, 2014, 6:02am UTC](https://discourse.chef.io/t/cmd-not-recognised-chef-bootstrap/5508/1 "2014-07-11T06:02:30Z")

</div>

Hi,

```
       First i ve bootstrap and register my node and run chef-client at all. when iam running again chef-client from a same workstation it shows chef-client not recognised ,also in target machine also it showing a same.So i ve delete that node and bootstrap that machine but it showing a below error:

```

172.16.1.197 ‘cmd.exe’ is not recognized as an internal or external command,  
172.16.1.197 operable program or batch file.  
172.16.1.197 ‘cmd.exe’ is not recognized as an internal or external command,  
172.16.1.197 operable program or batch file.  
172.16.1.197 ‘cmd.exe’ is not recognized as an internal or external command,  
172.16.1.197 operable program or batch file.  
172.16.1.197 ‘cmd.exe’ is not recognized as an internal or external command,  
172.16.1.197 operable program or batch file.  
172.16.1.197 ‘cmd.exe’ is not recognized as an internal or external command,  
172.16.1.197 operable program or batch file.  
172.16.1.197 ‘cmd.exe’ is not recognized as an

Thanks,  
indra

---

<div class="post-metadata">

**Author:** ![Santhosh](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Santhosh](https://discourse.chef.io/u/Santhosh)\
**Post date:** [July 11, 2014, 6:27am UTC](https://discourse.chef.io/t/cmd-not-recognised-chef-bootstrap/5508/2 "2014-07-11T06:27:14Z")

</div>

On 7/11/2014 11:32 AM, Indra k wrote:

> Hi,
> 
> ```
> First i ve bootstrap and register my node and run 
> 
> ```
> 
> chef-client at all. when iam running again chef-client from a same  
> workstation it shows chef-client not recognised ,also in target  
> machine also it showing a same.So i ve delete that node and bootstrap  
> that machine but it showing a below error:
> 
> 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an
> 
> Thanks,  
> indra  
> |Doesn't appear like a chef error.  
> run 'where cmd' from your command prompt. your first output should be  
> C:\Windows\System32\cmd.exe and then C:\opscode\chef\embedded\bin\cmd .

it's also possible you have autorun enabled. 'cmd \d ' will clear this  
up, if not try deleting the key from registry.

more details here.  
[http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx](http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx)  
||  
Regards  
Santhosh  
|

---

<div class="post-metadata">

**Author:** ![Indra\_k](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@Indra\_k](https://discourse.chef.io/u/Indra_k)\
**Post date:** [July 11, 2014, 6:52am UTC](https://discourse.chef.io/t/cmd-not-recognised-chef-bootstrap/5508/3 "2014-07-11T06:52:52Z")

</div>

hi ,  
there is no such autorun,also i tried cmd /d in the cmd.exe path of command prompt.Need to set path for that cmd.exe ah

Thanks & regards,  
indra

* * *

From: Santhosh [santhoshsusbs@gmail.com](mailto:santhoshsusbs@gmail.com)  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Sent: Friday, 11 July 2014 11:57 AM  
Subject: [chef] Re: cmd not recognised-chef bootstrap

On 7/11/2014 11:32 AM, Indra k wrote:

Hi,

> ```
> First i ve bootstrap and register my node and run chef-client at all. when iam running again chef-client from a same workstation it shows chef-client not recognised ,also in target machine also it showing a same.So i ve delete that node and bootstrap that machine but it showing a below error:
> 
> ```
> 
> 172.16.1.197 'cmd.exe' is not recognized as an internal or external command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or  
> external command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or  
> external command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or  
> external command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an internal or  
> external command,  
> 172.16.1.197 operable program or batch file.  
> 172.16.1.197 'cmd.exe' is not recognized as an
> 
> Thanks,  
> indra  
> Doesn't appear like a chef error.  
> run 'where cmd' from your command prompt. your first output should  
> be C:\Windows\System32\cmd.exe and then  
> C:\opscode\chef\embedded\bin\cmd .

it's also possible you have autorun enabled. 'cmd \d ' will clear  
this up, if not try deleting the key from registry.

more details here. [http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx](http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx)

Regards  
Santhosh

---

<div class="post-metadata">

**Author:** ![Santhosh](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Santhosh](https://discourse.chef.io/u/Santhosh)\
**Post date:** [July 11, 2014, 7:01am UTC](https://discourse.chef.io/t/cmd-not-recognised-chef-bootstrap/5508/4 "2014-07-11T07:01:53Z")

</div>

OK, you are top posting.

what is the output of 'where cmd '

On 7/11/2014 12:22 PM, Indra k wrote:

> hi ,  
> there is no such autorun,also i tried cmd /d in the cmd.exe  
> path of command prompt.Need to set path for that cmd.exe ah
> 
> Thanks & regards,  
> indra
> 
> * * *
> 
> _From:_ Santhosh [santhoshsusbs@gmail.com](mailto:santhoshsusbs@gmail.com)  
> _To:_ [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> _Sent:_ Friday, 11 July 2014 11:57 AM  
> _Subject:_ [chef] Re: cmd not recognised-chef bootstrap
> 
> On 7/11/2014 11:32 AM, Indra k wrote:
> 
> > Hi,
> > 
> > First i ve bootstrap and register my node and run chef-client at all.  
> > when iam running again chef-client from a same workstation it shows  
> > chef-client not recognised ,also in target machine also it showing a  
> > same.So i ve delete that node and bootstrap that machine but it  
> > showing a below error:
> > 
> > 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> > command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> > command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> > command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> > command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an internal or external  
> > command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an
> > 
> > Thanks,  
> > indra  
> > |Doesn't appear like a chef error.  
> > run 'where cmd' from your command prompt. your first output should be  
> > C:\Windows\System32\cmd.exe and then C:\opscode\chef\embedded\bin\cmd .
> 
> it's also possible you have autorun enabled. 'cmd \d ' will clear this  
> up, if not try deleting the key from registry.
> 
> more details here.  
> [http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx](http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx)  
> ||  
> Regards  
> Santhosh  
> |

---

<div class="post-metadata">

**Author:** ![Indra\_k](https://avatars.discourse-cdn.com/v4/letter/i/c89c15/32.png) [@Indra\_k](https://discourse.chef.io/u/Indra_k)\
**Post date:** [July 11, 2014, 7:18am UTC](https://discourse.chef.io/t/cmd-not-recognised-chef-bootstrap/5508/5 "2014-07-11T07:18:55Z")

</div>

Hi,  
its solved.its just a path issue, i set a path for that in a system environment variable thats it.  
Thanks,  
indra

* * *

From: Santhosh [santhoshsusbs@gmail.com](mailto:santhoshsusbs@gmail.com)  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Sent: Friday, 11 July 2014 12:31 PM  
Subject: [chef] Re: Re: Re: cmd not recognised-chef bootstrap

OK, you are top posting.

what is the output of 'where cmd '

On 7/11/2014 12:22 PM, Indra k wrote:

hi ,

> ```
> there is no such autorun,also i tried cmd /d in the cmd.exe path of command prompt.Need to set path for that cmd.exe ah
> 
> ```
> 
> Thanks & regards,  
> indra
> 
> * * *
> 
> From: Santhosh [santhoshsusbs@gmail.com](mailto:santhoshsusbs@gmail.com)  
> To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> Sent: Friday, 11 July 2014 11:57 AM  
> Subject: [chef] Re: cmd not recognised-chef bootstrap
> 
> On 7/11/2014 11:32 AM, Indra k wrote:
> 
> Hi,
> 
> > ```
> > First i ve bootstrap and register my node and run chef-client at all. when iam running again chef-client from a same workstation it shows chef-client not recognised ,also in target machine also it showing a same.So i ve delete that node and bootstrap that machine but it showing a below error:
> > 
> > ```
> > 
> > 172.16.1.197 'cmd.exe' is not recognized as an internal or external command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an  
> > internal or external command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an  
> > internal or external command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an  
> > internal or external command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an  
> > internal or external command,  
> > 172.16.1.197 operable program or batch file.  
> > 172.16.1.197 'cmd.exe' is not recognized as an
> > 
> > Thanks,  
> > indra  
> > Doesn't appear like a chef error.  
> > run 'where cmd' from your command prompt. your first  
> > output should be C:\Windows\System32\cmd.exe and  
> > then C:\opscode\chef\embedded\bin\cmd .
> 
> it's also possible you have autorun enabled. 'cmd \d  
> ' will clear this up, if not try deleting the key  
> from registry.
> 
> more details here. [http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx](http://blogs.msdn.com/b/oldnewthing/archive/2007/11/21/6447771.aspx)
> 
> Regards  
> Santhosh
