# Windows cookbooks

**URL:** https://discourse.chef.io/t/windows-cookbooks/4222
**Category:** Chef Infra (archive)
**Created:** [July 21, 2013, 12:55pm UTC](https://discourse.chef.io/t/windows-cookbooks/4222 "2013-07-21T12:55:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![a\_a\_a](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@a\_a\_a](https://discourse.chef.io/u/a_a_a)
#### Post date: [July 21, 2013, 12:55pm UTC](https://discourse.chef.io/t/windows-cookbooks/4222/1 "2013-07-21T12:55:52Z")

</div>

Dear all,

I have a problem with my chef server and my windows nodes.  
I have a chef server on ubuntu 10.4 and even though I’m not a linux expert,  
i’m  
pretty shure that my server is Installed correct.  
The problem is that when i’m trying to install an applycation (any  
aplication!!!) on my windows server (Windows server 2008 R2) through cookbooks  
i’m receiving the following error:  
"NameError: uninitialized constant  
Chef::Win32::Registry::HKEY\_LOCAL\_MACHINE"  
Any suggestions???

Is there something wrong with my chef server or the problem is on my windows  
server?

Thank you in advance

Nick Zagoreos

---

<div class="post-metadata">

### Author: ![realityforge](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/realityforge/32/395_2.png) [@realityforge](https://discourse.chef.io/u/realityforge)
#### Post date: [July 21, 2013, 11:46pm UTC](https://discourse.chef.io/t/windows-cookbooks/4222/2 "2013-07-21T23:46:46Z")

</div>

Hi,

Under windows you need to make sure that the recipe "windows::default"  
is included really early in the run (i.e. first) which will install  
the required gems for this to work.

On Sun, Jul 21, 2013 at 10:55 PM, [nzagoreos@newsphone.gr](mailto:nzagoreos@newsphone.gr) wrote:

> Dear all,
> 
> I have a problem with my chef server and my windows nodes.  
> I have a chef server on ubuntu 10.4 and even though I'm not a linux expert,  
> i'm  
> pretty shure that my server is Installed correct.  
> The problem is that when i'm trying to install an applycation (any  
> aplication!!!) on my windows server (Windows server 2008 R2) through cookbooks  
> i'm receiving the following error:  
> "NameError: uninitialized constant  
> Chef::Win32::Registry::HKEY\_LOCAL\_MACHINE"  
> Any suggestions????
> 
> Is there something wrong with my chef server or the problem is on my windows  
> server?
> 
> Thank you in advance
> 
> Nick Zagoreos

--  
Cheers,

Peter Donald
