It's been a while, but as promised, pull request to fix working with binary registry data here:
https://github.com/ansible/ansible-modules-extras/pull/2034 Also integration tests added for win_regedit here: https://github.com/ansible/ansible/pull/15422 I tested against Server 2008 R2 and Server 2012 R2 so if anyone has other windows versions they could test against, I'd be very grateful. Many thanks, Jon On Thursday, February 25, 2016 at 2:47:38 PM UTC, J Hawkesworth wrote: > > To follow up, it appears you need to convert the incoming data to a byte > array. I have some prototype code that can do this and will tidy up the > code and create a pull request to add this when I get the chance. If > anyone else hits this before the PR is available let me know and I'll send > you a modified version of win_regedit. > > All the best, > > Jon > > On Thursday, 25 February 2016 10:18:29 UTC, J Hawkesworth wrote: >> >> Hi, >> >> Does anyone have an example of using win_regedit to set binary data? >> >> I have a hex encoded string from a reg export but so far not found a way >> to convert it to whatever powershell needs. >> >> Many thanks, >> >> Jon >> > On Thursday, February 25, 2016 at 2:47:38 PM UTC, J Hawkesworth wrote: > > To follow up, it appears you need to convert the incoming data to a byte > array. I have some prototype code that can do this and will tidy up the > code and create a pull request to add this when I get the chance. If > anyone else hits this before the PR is available let me know and I'll send > you a modified version of win_regedit. > > All the best, > > Jon > > On Thursday, 25 February 2016 10:18:29 UTC, J Hawkesworth wrote: >> >> Hi, >> >> Does anyone have an example of using win_regedit to set binary data? >> >> I have a hex encoded string from a reg export but so far not found a way >> to convert it to whatever powershell needs. >> >> Many thanks, >> >> Jon >> > On Thursday, February 25, 2016 at 2:47:38 PM UTC, J Hawkesworth wrote: > > To follow up, it appears you need to convert the incoming data to a byte > array. I have some prototype code that can do this and will tidy up the > code and create a pull request to add this when I get the chance. If > anyone else hits this before the PR is available let me know and I'll send > you a modified version of win_regedit. > > All the best, > > Jon > > On Thursday, 25 February 2016 10:18:29 UTC, J Hawkesworth wrote: >> >> Hi, >> >> Does anyone have an example of using win_regedit to set binary data? >> >> I have a hex encoded string from a reg export but so far not found a way >> to convert it to whatever powershell needs. >> >> Many thanks, >> >> Jon >> > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2ff696ef-2459-41e9-8b3c-5be226a3f83d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
