# registry\_key resource missing modify action?

**URL:** https://discourse.chef.io/t/registry-key-resource-missing-modify-action/5310
**Category:** Chef Infra (archive)
**Created:** [May 15, 2014, 10:34pm UTC](https://discourse.chef.io/t/registry-key-resource-missing-modify-action/5310 "2014-05-15T22:34:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ostap36](https://avatars.discourse-cdn.com/v4/letter/o/f6c823/32.png) [@ostap36](https://discourse.chef.io/u/ostap36)
#### Post date: [May 15, 2014, 10:34pm UTC](https://discourse.chef.io/t/registry-key-resource-missing-modify-action/5310/1 "2014-05-15T22:34:05Z")

</div>

Hello Chefs,

Looking at the registry LWRP in the windows cookbook it’s saying that it is deprecated in favor of registry\_key resource, however the latter doesn’t seem to have :modify action for existing keys.

What’s the approach to modify an existing key/value, w/o having to resort to powershell resource? Still use registry LWRP?

Thank you

---

<div class="post-metadata">

### Author: ![jdunn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jdunn/32/1800_2.png) [@jdunn](https://discourse.chef.io/u/jdunn)
#### Post date: [May 16, 2014, 2:46pm UTC](https://discourse.chef.io/t/registry-key-resource-missing-modify-action/5310/2 "2014-05-16T14:46:49Z")

</div>

:create _should_ also set the key to the target value. Let us know if  
it doesn't.

- Julian

On Thu, May 15, 2014 at 5:34 PM, Alex Myasnikov  
[amyasnikov@practicefusion.com](mailto:amyasnikov@practicefusion.com) wrote:

> Hello Chefs,
> 
> Looking at the registry LWRP in the windows cookbook it’s saying that it is  
> deprecated in favor of registry\_key resource, however the latter doesn’t  
> seem to have :modify action for existing keys.
> 
> What’s the approach to modify an existing key/value, w/o having to resort to  
> powershell resource? Still use registry LWRP?
> 
> Thank you

--  
[Julian C. Dunn [jdunn@aquezada.com](mailto:jdunn@aquezada.com) \* Sorry, I'm ]  
[WWW: [http://www.aquezada.com/staff/julian](http://www.aquezada.com/staff/julian) \* only Web 1.0 ]  
[gopher://sdf.org/1/users/keymaker/ \* compliant!]  
[PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9]
