Windows 10: Edit registry on a mounted wim

Discus and support Edit registry on a mounted wim in Windows 10 Customization to solve the problem; Can anybody tell me how to modify the registry on a mounted wim? I keep getting Access denied. This is the command I am using: reg load... Discussion in 'Windows 10 Customization' started by PaulaJava, Sep 4, 2017.

  1. PaulaJava Win User

    Edit registry on a mounted wim


    Can anybody tell me how to modify the registry on a mounted wim? I keep getting Access denied. This is the command I am using: reg load hkey_local_machine\software c:\test\offline\windows\system32\config\software

    We have Windows 10 64 bit Enterprise edition.

    :)
     
    PaulaJava, Sep 4, 2017
    #1
  2. Trinnyg Win User

    Current DISM commands as The DISM /ScanHealth, /CheckHealth, and /RestoreHealth are no longer valid.

    Not finding the current syntax of this above command to apply to Windows 10 version I am using.

    Current version of Windows 10 -

    Version 1703 - > os build 15063.608

    Windows 10 Professional

    Current DISM Commands help file.

    Deployment Image Servicing and Management tool

    Version: 10.0.15063.0

    DISM.exe [dism_options] {Imaging_command} [<Imaging_arguments>]

    DISM.exe {/Image:<path_to_offline_image> | /Online} [dism_options]

    {servicing_command} [<servicing_arguments>]

    DESCRIPTION:

    DISM enumerates, installs, uninstalls, configures, and updates features

    and packages in Windows images. The commands that are available depend

    on the image being serviced and whether the image is offline or running.

    GENERIC IMAGING COMMANDS:

    /Split-Image - Splits an existing .wim or .ffu file into multiple

    read-only split WIM/FFU files.

    /Apply-Image - Applies an image.

    /Get-MountedImageInfo - Displays information about mounted WIM and VHD

    images.

    /Get-ImageInfo - Displays information about images in a WIM or VHD

    file.

    /Commit-Image - Saves changes to a mounted WIM or VHD image.

    /Unmount-Image - Unmounts a mounted WIM or VHD image.

    /Mount-Image - Mounts an image from a WIM or VHD file.

    /Remount-Image - Recovers an orphaned image mount directory.

    /Cleanup-Mountpoints - Deletes resources associated with corrupted

    mounted images.

    WIM COMMANDS:

    /Apply-CustomDataImage - Dehydrates files contained in the custom data image.

    /Capture-CustomImage - Captures customizations into a delta WIM file on a

    WIMBoot system. Captured directories include all

    subfolders and data.

    /Get-WIMBootEntry - Displays WIMBoot configuration entries for the

    specified disk volume.

    /Update-WIMBootEntry - Updates WIMBoot configuration entry for the

    specified disk volume.

    /List-Image - Displays a list of the files and folders in a

    specified image.

    /Delete-Image - Deletes the specified volume image from a WIM file

    that has multiple volume images.

    /Export-Image - Exports a copy of the specified image to another

    file.

    /Append-Image - Adds another image to a WIM file.

    /Capture-Image - Captures an image of a drive into a new WIM file.

    Captured directories include all subfolders and

    data.

    /Get-MountedWimInfo - Displays information about mounted WIM images.

    /Get-WimInfo - Displays information about images in a WIM file.

    /Commit-Wim - Saves changes to a mounted WIM image.

    /Unmount-Wim - Unmounts a mounted WIM image.

    /Mount-Wim - Mounts an image from a WIM file.

    /Remount-Wim - Recovers an orphaned WIM mount directory.

    /Cleanup-Wim - Deletes resources associated with mounted WIM

    images that are corrupted.

    IMAGE SPECIFICATIONS:

    /Online - Targets the running operating system.

    /Image - Specifies the path to the root directory of an

    offline Windows image.

    DISM OPTIONS:

    /English - Displays command line output in English.

    /Format - Specifies the report output format.

    /WinDir - Specifies the path to the Windows directory.

    /SysDriveDir - Specifies the path to the system-loader file named

    BootMgr.

    /LogPath - Specifies the logfile path.

    /LogLevel - Specifies the output level shown in the log (1-4).

    /NoRestart - Suppresses automatic reboots and reboot prompts.

    /Quiet - Suppresses all output except for error messages.

    /ScratchDir - Specifies the path to a scratch directory.

    For more information about these DISM options and their arguments, specify an

    option immediately before /?.

    Examples:

    DISM.exe /Mount-Wim /?

    DISM.exe /ScratchDir /?

    DISM.exe /Image:C:\test\offline /?

    DISM.exe /Online /?
     
    Trinnyg, Sep 4, 2017
    #2
  3. Settings in Windows 10 doesn't work.

    Tried method 1 and did not work.

    Method 2 so far is as follows:

    Microsoft Windows [Version 10.0.10240]

    (c) 2015 Microsoft Corporation. All rights reserved.
    C:\WINDOWS\system32>DISM.exe/Online/Cleanup-image/Scanhealth
    Deployment Image Servicing and Management tool

    Version: 10.0.10240.16384

    Error: 87
    The online/cleanup-image/scanhealth option is unknown.

    For more information, refer to the help by running DISM.exe /?.
    The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log
    C:\WINDOWS\system32>DISM.exe/?
    Deployment Image Servicing and Management tool

    Version: 10.0.10240.16384

    DISM.exe [dism_options] {Imaging_command} [<Imaging_arguments>]

    DISM.exe {/Image:<path_to_offline_image> | /Online} [dism_options]

    {servicing_command} [<servicing_arguments>]
    DESCRIPTION:
    DISM enumerates, installs, uninstalls, configures, and updates features

    and packages in Windows images. The commands that are available depend

    on the image being serviced and whether the image is offline or running.
    GENERIC IMAGING COMMANDS:
    /Split-Image - Splits an existing .wim or .ffu file into multiple

    read-only split WIM/FFU files.

    /Apply-Image - Applies an image.

    /Get-MountedImageInfo - Displays information about mounted WIM and VHD

    images.

    /Get-ImageInfo - Displays information about images in a WIM or VHD

    file.

    /Commit-Image - Saves changes to a mounted WIM or VHD image.

    /Unmount-Image - Unmounts a mounted WIM or VHD image.

    /Mount-Image - Mounts an image from a WIM or VHD file.

    /Remount-Image - Recovers an orphaned image mount directory.

    /Cleanup-Mountpoints - Deletes resources associated with corrupted

    mounted images.

    WIM COMMANDS:
    /Apply-CustomDataImage - Dehydrates files contained in the custom data image.
    /Capture-CustomImage - Captures customizations into a delta WIM file on a

    WIMBoot system. Captured directories include all

    subfolders and data.

    /Get-WIMBootEntry - Displays WIMBoot configuration entries for the

    specified disk volume.

    /Update-WIMBootEntry - Updates WIMBoot configuration entry for the

    specified disk volume.

    /List-Image - Displays a list of the files and folders in a

    specified image.

    /Delete-Image - Deletes the specified volume image from a WIM file

    that has multiple volume images.

    /Export-Image - Exports a copy of the specified image to another

    file.

    /Append-Image - Adds another image to a WIM file.

    /Capture-Image - Captures an image of a drive into a new WIM file.

    Captured directories include all subfolders and

    data.

    /Get-MountedWimInfo - Displays information about mounted WIM images.

    /Get-WimInfo - Displays information about images in a WIM file.

    /Commit-Wim - Saves changes to a mounted WIM image.

    /Unmount-Wim - Unmounts a mounted WIM image.

    /Mount-Wim - Mounts an image from a WIM file.

    /Remount-Wim - Recovers an orphaned WIM mount directory.

    /Cleanup-Wim - Deletes resources associated with mounted WIM

    images that are corrupted.
    IMAGE SPECIFICATIONS:
    /Online - Targets the running operating system.

    /Image - Specifies the path to the root directory of an

    offline Windows image.
    DISM OPTIONS:
    /English - Displays command line output in English.

    /Format - Specifies the report output format.

    /WinDir - Specifies the path to the Windows directory.

    /SysDriveDir - Specifies the path to the system-loader file named

    BootMgr.

    /LogPath - Specifies the logfile path.

    /LogLevel - Specifies the output level shown in the log (1-4).

    /NoRestart - Suppresses automatic reboots and reboot prompts.

    /Quiet - Suppresses all output except for error messages.

    /ScratchDir - Specifies the path to a scratch directory.
    For more information about these DISM options and their arguments, specify an

    option immediately before /?.
    Examples:

    DISM.exe /Mount-Wim /?

    DISM.exe /ScratchDir /?

    DISM.exe /Image:C:\test\offline /?

    DISM.exe /Online /?

    C:\WINDOWS\system32>

    Where do I go from here?
     
    MrStephenWeston, Sep 4, 2017
    #3
  4. Berton Win User

    Edit registry on a mounted wim

    A useful feature of the Enterprise Edition [what companies usually get] is the ability to lock out Users from various aspects which begs the question, could that be getting in your way? Other than that possibility I have no answer.
     
    Berton, Sep 4, 2017
    #4
  5. lx07 Win User
    I do it like this (where $WorkDir is directory where the wim is mounted) PHP Code: # Registry Changes
    reg load HKLM\WinPE_SYSTEM $WorkDir\mount\windows\system32\config\SYSTEM
    reg load HKLM\WinPE_SOFTWARE $WorkDir\mount\windows\system32\config\SOFTWARE

    $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\NetSh"
    reg add $RegKey /v wlancfg /t REG_SZ /d wlancfg.dll /f
    Can you post the error - what are you not authorized to? Presumably you are running as administrator...
     
    lx07, Sep 4, 2017
    #5
  6. PaulaJava Win User
    I am running as administrator:

    C:\Program Files\Windows AIK\Tools\PETools>dism /mount-wim /wimfile:c:\test\images\64Win10Ent-1511-IHSlogo.wim /index:1 /mountdir:c:\test\offline

    Deployment Image Servicing and Management toolVersion: 6.1.7600.16385

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    C:\Program Files\Windows AIK\Tools\PETools>reg load hkey_local_machine\software
    c:\test\offline\windows\system32\config\software
    ERROR: Access is denied.
     
    PaulaJava, Sep 4, 2017
    #6
  7. lx07 Win User
    You are trying to load your offline image to the existing HKLM\SOFTWARE hive. You can't - you need a new unused name.

    Make up another name like HKLM\WinPE_SOFTWARE and it works fine like this (the name doesn't matter - it just must not already exist): Code: PS C:\WINDOWS\system32> dism /mount-wim /wimfileEdit registry on a mounted wim :D:\Temp\install.wim /index:1 /mountdir:C:\test\offline Deployment Image Servicing and Management tool Version: 10.0.16281.1000 Mounting image [==========================100.0%==========================] The operation completed successfully. PS C:\WINDOWS\system32> reg load hkey_local_machine\SOFTWARE c:\test\offline\windows\system32\config\software ERROR: Access is denied. PS C:\WINDOWS\system32> reg load HKLM\SOFTWARE c:\test\offline\windows\system32\config\software ERROR: Access is denied. PS C:\WINDOWS\system32> reg load HKLM\WinPE_SOFTWARE c:\test\offline\windows\system32\config\software The operation completed successfully. PS C:\WINDOWS\system32>[/quote] Then update HKLM\WinPE_SOFTWARE or whatever name you chose like this (with whatever you want) Code: $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\NetSh" reg add $RegKey /v wlancfg /t REG_SZ /d wlancfg.dll /f $RegKey="HKLM\WinPE_SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost" reg add $RegKey /v LocalSystemNetworkRestricted /t REG_MULTI_SZ /d Netman\0hidserv\0svsvc\0dot3svc\0wlansvc /f[/quote] Unload the hive you mounted Code: reg unload HKLM\WinPE_SOFTWARE[/quote] and unmount the wim (I forget the dism syntax) Code: # Unmount the WinPE image Get-WindowsImage -Mounted -ErrorAction Stop | ForEach-Object { Dismount-WindowsImage -Path $_.Path -Save -ErrorAction Stop }[/quote]
     
    lx07, Sep 4, 2017
    #7
  8. ws2000 Win User

    Edit registry on a mounted wim

    Hello

    Can I safely mount my 10 Pro install.wim and remove some apps and make HKCU and HKLM registry changes and use that to upgrade machines via SCCM? Or can this only be used in a clean full install? I have had sucess with an install.wim I removed some of the apps from but none that I have changed some of the registry keys to turn off privacy related setting I get a BSOD

    Thanks
     
    ws2000, Sep 6, 2017
    #8
  9. PaulaJava Win User
    Saweet! It mounted successfully. Now I need to figure out the syntax for turning the numlock on at boot up. *Smile

    Thank you LXO.
     
    PaulaJava, Sep 6, 2017
    #9
  10. Berton Win User
    Is it possible the numlock Tutorial [in the Tutorials section of this Forum] would work for your purpose. I find that function works to Save State or if the numlock is On at shutdown it usually be be On at the next start.
     
    Berton, Sep 6, 2017
    #10
  11. PaulaJava Win User
    I was able to make changes in HKLM such as UAC turned off. But I can't seem to be able to load HKEY_USERS\.DEFAULT so I can modify the keyboard and turn on numlock at start up. Any thoughts?
     
    PaulaJava, Apr 5, 2018
    #11
Thema:

Edit registry on a mounted wim

Loading...
  1. Edit registry on a mounted wim - Similar Threads - Edit registry mounted

  2. How to mount wim file with DISM?

    in Windows 10 Gaming
    How to mount wim file with DISM?: I am trying to mount a wim file to customize the windows 11 installation. I downloaded the Windows 11 Media creation tool and created a usb key with it. I noticed the usb key had 2 swm files. I don't know if you can mount 2 swm files. I would prefer to mount 2 swm files...
  3. How to mount wim file with DISM?

    in Windows 10 Software and Apps
    How to mount wim file with DISM?: I am trying to mount a wim file to customize the windows 11 installation. I downloaded the Windows 11 Media creation tool and created a usb key with it. I noticed the usb key had 2 swm files. I don't know if you can mount 2 swm files. I would prefer to mount 2 swm files...
  4. in which folder in wim mounted image added drivers go

    in Windows 10 Installation and Upgrade
    in which folder in wim mounted image added drivers go: I am following a tutorial here to integrate device drives in windows install media, so I mounted the wim file in a directory and I go to see the following directory structure Code: PerfLogs Program Files Program Files (x86) Users Windows Inside them there are several...
  5. Need Help Regarding Powershell Command in Batch Script to Mount Wim

    in Windows 10 Customization
    Need Help Regarding Powershell Command in Batch Script to Mount Wim: Please Help. I want Powershell to show Grid View as Output of Wim Indexes then when a user select one from menu & press OK it will then mount the selected wim. Get-WindowsImage -ImagePath "\install.wim" | Out-GridView -PassThru -Title 'Select Windows Image and press OK'|...
  6. Editing the registry

    in Windows 10 Support
    Editing the registry: I migrated from win7 to win10 using the in-place method MS recommends. But as a result of that the registry is full of entries for programs that were removed years ago. What I want to do is just remove them; edit them out. I know the best way to remove them is to begin again...
  7. Editing the registry

    in Windows 10 BSOD Crashes and Debugging
    Editing the registry: I need to edit the registry to remove/expunge residual program entries after an un-install and clean-up. Background I upgraded from win7 to win10, and noted that installed apps several versions of VideoStudio failed on the 2nd and subsequent execution on win10. I've...
  8. Registry Edit

    in Windows 10 Installation and Upgrade
    Registry Edit: I deleted something from registry edit. Im not too sure what, it was along the lines of Tab- or Tablet- because i was going through getting rid of anything that could be causing errors for my new tablet drivers. But now im getting a flashing screen, and white icons (or no...
  9. registry editer

    in Windows 10 Software and Apps
    registry editer: the only place I can find it is in system configuration, under tools and cannot remove it!!! https://answers.microsoft.com/en-us/windows/forum/all/registry-editer/26358bbd-5cec-46d7-bab8-36f6bc7afb9f
  10. DISM error(syntax incorrect) when trying to mount WIM files..

    in Windows 10 Performance & Maintenance
    DISM error(syntax incorrect) when trying to mount WIM files..: I get this error every time when i try mounting files using DISM, Code: The filename, directory name or Volume label syntax is incorrect.[/quote] earlier there was a problem regarding wimmount.sys driver not found whose path was changed due to Macrium Reflect Free, i...

Users found this page by searching for:

  1. update registry in wim files

    ,
  2. Edit the registry on a mounted WIM

    ,
  3. Edit HKLM MOUNTED WIM