Windows Vista Forums

Reading registry from vmdk files

  1. #1


    Join Date : Feb 2009
    Posts : 3
    Vista Ultimate x64
    Local Time: 18:37

    Loading the software registry hive trouble

    Greetings

    I was wondering if there is a way to read the registry from a virtual disk.

    What I want to achieve is a way to check what software is installed on vmware images that is powered off (licence control). I'm using VMware DiskMount Utility to mount the virtual disks to a local drive path, but just reading the software registry file, located here C:\Windows\System32\config, results in a lot of garbled text (as expected).

    In other words. Is there a way to load a registry hive the same way in powershell as its done in regedit? I found a way to search the registry of a remote server but that would require us to start all the dormant vmware images to check what software is installed.

    Any help is appreciated

    Cheers,
    Magnus

    Last edited by smkris; 04 Feb 2009 at 08:55. Reason: changed topic
      My System SpecsSystem Spec

  2. #2


    Join Date : Feb 2009
    Posts : 3
    Vista Ultimate x64
    Local Time: 18:37


      Thread Starter

    Re: Reading registry from vmdk files

    I figured out part of the problem

    By using reg load. But I get some error message when I try to do this:

    PS Z:\windows\System32\config> reg load hklm\tempSoftware "Z:\windows\System32\config\software"
    ERROR: The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.

    If I try to load system there is no problem. I tried to do it manually in regedit and got the error "error while loading hive"

    Could this be because I try to load an xp hive on a Vista machine? If that is the case is there a workaround for that problem?

      My System SpecsSystem Spec

Reading registry from vmdk files

Similar Threads
Thread Forum
Reading x86 or x64 registry from Powershell - Help with my script!
I’m currently working on a script in Powershell that will be used to read the registry, depending on the operating system architecture (x86 or...
PowerShell
Problem reading registry remotely
Hi all, I am creating the below script for reading the registry remotely. It seems to give me an error saying Network path not found for some...
PowerShell
Reading from the registry
I have a classic asp site and a function to read from the registry. I have two identical reg keys, one in HKLM and one in HCU. Using my vbscript...
VB Script
Problem reading the registry
Hi, I'm using Microsoft Virtual PC 2007, with Windows 2000 SP4 loaded, to test some software. I need to read the registry from a DLL created...
Virtual PC
Clearing strValue when reading registry.
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath =...
VB Script
Remotely reading HKLM registry key
I have been successful in reading the registry on remote Vista systems --for the most part. I have no trouble reading the HKCU keys. I can read most...
Vista security
reading/writing registry values
I am just trying to learn powershell, and I have a question: I am trying to get and set a registry value. I can get it like this (is this the...
PowerShell