Editing Windows registry, from Python, Under Linux?

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.

Some impressive work you have done there! :-) – RedGlyph Nov 3 '09 at 12:54 +1 and I would be very interested – Aiden Bell Nov 3 '09 at 14:02 OK, will also post here when we've got something! – bobince Nov 3 '09 at 20:50.

You may want to have a look at this project. The initial idea was to recover passwords but all the tools are there to edit registry entries. It sounds like a dangerous idea though, I would rather find a way to launch a Python script - even remotely - with _winreg in its own environment but it doesn't seem to be a possibility for you.

Note also that I didn't see any mention of Windows 7 in their project.

1 Will check the source out – Aiden Bell Nov 3 '09 at 14:09.

I think you are out of luck, as I couldn't find any such lib. When I need such thing some years back(to change a windows image file). Also writing it yourself isn't easy and I also couldn't find any MS document describing the format.

Here are some links which come up in google search and describe format partially sentinelchicken.com/research/registry%5F... home.eunet.no/pnordahl/ntpasswd/WinReg.txt.

Creddump is written in Python (no C extensions) and has code to read the registry (though not write it). It may help you get started: code.google.com/p/creddump.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions