在Linux下从Python编辑Windows注册表 [英] Editing Windows registry, from Python, Under Linux

查看:75
本文介绍了在Linux下从Python编辑Windows注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Python API(或我愿意绑定的C API),以便在Linux系统中将Windows注册表从XP修改为7.

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.

Windows目标将是Linux下的已安装卷.

The Windows target will be a mounted volume under Linux.

如果没有一个库,我愿意编码.因此,注册表上的任何文档或内部文档也将很方便.

I would be willing to code a library if none exists. Therefore, any docs or internals on the registry would be handy too.

任何帮助,非常有用.

推荐答案

确定,那么您正在寻找配置单元文件编辑器吗?

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

我编写了一个winregistry模块来执行此操作(对于NT和win9x蜂箱).尚未真正为公众准备,但可以很好地处理我当时使用的数据.我不确定我将其保留在什么状态,还没有用Win7蜂箱对其进行测试,但是也许我们可以将其修复以进行发布?如果您有兴趣,我可以将其转储到源代码管理中的某个地方进行处理.

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.

我工作的文档是ntpasswd著名的 WinReg.txt ,但是我发现了它的许多缺陷(也可以使您对我的注释不满意).从那时起,这些文件就被制作出来了,首先乍一看可能会更好地解决问题.

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.

这篇关于在Linux下从Python编辑Windows注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆