Results 1 to 8 of 8

Thread: Cleaning Windows registry through Linux command line interface

  1. #1
    Join Date
    Mar 2007
    Beans
    1,052

    Cleaning Windows registry through Linux command line interface

    Is it possible to remove unused registry entries in a Windows installation by using the CLI in Linux? For example, when one uninstalls a program, not everything is removed from the Windows registry. If it's possible, how can make it so that everything that is unused is removed? My goal is to have a script that automates this hence the command line requirement.

    Any input would be greatly appreciated!
    Apps for Ubuntu (outdated) ---> http://cid-23a283fc1010a1bb.skydrive...%20Wine|6?uc=1
    Use Mnemosyne to Study for School!

  2. #2
    Join Date
    Jul 2008
    Location
    England
    Beans
    866

    Re: Cleaning Windows registry through Linux command line interface

    Why use linux CLI? It seems to be a job much more suited to actually be done in Windows.
    My current project: http://apps.facebook.com/beatthetexan - Creating an artificial poker player using neural networks and genetic algorithms.
    My blog: http://pm-gaming.blogspot.com

  3. #3
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,172
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Cleaning Windows registry through Linux command line interface

    Quote Originally Posted by s3a View Post
    Is it possible to remove unused registry entries in a Windows installation by using the CLI in Linux? For example, when one uninstalls a program, not everything is removed from the Windows registry. If it's possible, how can make it so that everything that is unused is removed? My goal is to have a script that automates this hence the command line requirement.

    Any input would be greatly appreciated!
    - How can you tell a registry entry is "unused". AFAIK There is no "last access timestamp" for these.
    - See http://commandwindows.com/reg.htm for .BAT. if you use python there is also a _winreg (2.7) or winreg (3.x) module: http://docs.python.org/2/library/_winreg.html

  4. #4
    Join Date
    Jan 2008
    Location
    Nappanee, IN
    Beans
    602
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Cleaning Windows registry through Linux command line interface

    I have seen more damaged Windows installations caused by BAD registry 'cleaner' type programs than I have seen Windows installations helped by registry cleaners. The ONLY cleaners which I have had good, consistent results from is the registry cleaning portion of Piriform's CCleaner, or Glarysoft's Glary Utilities run from within Windows.

  5. #5
    Join Date
    Mar 2007
    Beans
    1,052

    Re: Cleaning Windows registry through Linux command line interface

    Thanks for the replies but, I haven't encountered any problems with registry cleaners before and, I really want to get this done in Linux if possible.

    Will the winreg module allow me to modify the registry of a Windows installation on one hard drive by using a Linux installation on another hard drive? I have a feeling that it won't natively but, what if I run it using wine?
    Apps for Ubuntu (outdated) ---> http://cid-23a283fc1010a1bb.skydrive...%20Wine|6?uc=1
    Use Mnemosyne to Study for School!

  6. #6
    Join Date
    Jan 2008
    Location
    Nappanee, IN
    Beans
    602
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Cleaning Windows registry through Linux command line interface

    As I recall, there was mention of 'fixing' or at least restoring a backup of the registry in the instructions for the System Rescue CD. You might try there.

  7. #7

    Re: Cleaning Windows registry through Linux command line interface

    Quote Originally Posted by s3a View Post
    Is it possible to remove unused registry entries in a Windows installation by using the CLI in Linux?...
    If they are unused, why are you wanting to remove them?
    Wine won't work.

    Your best bet is to export the hive of any keys you are interested in, edit them in a safe environment such as Linux, and re-import the hive back into the target host's Registry.
    Windows assumes the user is an idiot.
    Linux demands proof.

  8. #8
    Join Date
    Jan 2008
    Location
    Brooklyn, NY
    Beans
    259
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Re: Cleaning Windows registry through Linux command line interface

    +1 for CCleaner.

    I have used it for years without incident - It has a feature that allows you to backup your registry changes just in case you have to undo them. I have never had to.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •