Editing Windows registry, from Python, Under Linux

前端 未结 4 1293
情书的邮戳
情书的邮戳 2021-01-13 19:46

I am looking for a Python API (or a C API as I am willing to bind) for editing Windows registries from XP to 7 from within a Linux system.

The Windows target will be

4条回答
  •  逝去的感伤
    2021-01-13 19:54

    OK, so you're after a hive file editor?

    I wrote a winregistry module that does this (for both NT and win9x hives). It's not really ready for the public but worked quite well with the data I was using at the time. I'm not sure what state I left it in and I haven't tested it with Win7 hives, but maybe we could get it fixed up for release? If you're interested I could probably dump it in a source control somewhere to work on.

    The document I worked from was ntpasswd's well-known WinReg.txt, however I found many flaws in it (can also chuck you my annotations on that). Since then these documents have been produced, which at first glance may cover matters better.

提交回复
热议问题