How to use DISM in WINDOW PE environment?


  1. Posts : 24
    10
       #1

    How to use DISM in WINDOW PE environment?


    i am trying to repair my windows(i cannot boot to windows 10 and i tried automatic repair three times already). Can't even boot to safe mode. Keeps getting pci.sys corruption error at boot up.

    So i am forced to use a usb to boot to a Pre-installed window environment.

    Upon using Dism /online /cleanup-image /checkhealth

    i get an error:

    error 50 DISM does not support servicing windows PE with the /online option.

    Please help.

    Sidenote: I already tried sfc /scannow and got an error: windows resource system found corruptions but is unable to fix. So that why i am using DISM.
      My Computer

  2. lx07's Avatar
    Posts : 5,479
    2004
       #2

    If you are booting PE then you want to repair the offine image - online refers to the Windows image currently running which if you booted PE would be PE.

    Something line Dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows

    See Repair a Windows Image

    Your PE environment needs to have DISM installed also if it doesn't already. You'd need to mount PE, add these and then dismount again.
    Code:
    Add-Package WinPE-WMI 		# subset of WMI providers that enable minimal system diagnostics
    Add-Package WinPE-NetFX 	# subset of the .NET Framework 4.5
    Add-Package WinPE-Scripting 	# multiple-language scripting environment
    Add-Package WinPE-PowerShell 	# PowerShell–based diagnostics (requires all previous)
    Add-Package WinPE-DismCmdlets 	# Dism PowerShell module
    WinPE: Add packages (Optional Components Reference)

    Most likely these will be added anyway but it depends where you got your PE image from.
      My Computer


  3. Posts : 24
    10
    Thread Starter
       #3

    i am using the windows 10 boot from:

    Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Forums

    Apology, but I am new at this. Can someone walk me through this?

    I am confused at the mounting. Also the code given, do i type it in cmd.exe?
      My Computer

  4. lx07's Avatar
    Posts : 5,479
    2004
       #4

    From Recovery Environment the DISM commands are installed I believe so nothing to worry about there. And, yes, you will need to enter commands from cmd.exe.

    From Recovery Environment you will get a command prompt like X:\>Sources (see this tutorial - Open Command Prompt at Boot in Windows 10 Windows 10 General Tips Tutorials )

    Then you need to identify which drive letter is assigned to the windows installation on your PC. Most likely it will be C but it may not.

    This tutorial explains how. Run SFC Command in Windows 10 Windows 10 Performance Maintenance Tutorials

    If you haven't run SFC at boot as described in the tutorial above then run it - something like:
    sfc /scannow /offbootdir=C:\ /offwindir=C:\windows

    Then (assuming it is C - if not change C to D or whatever) enter:
    DISM /image:C:\ /cleanup-image /revertpendingactions

    The "/revertpendingactions" switch is optional but according to this blog helps with non-booting situations.

    Getting out of a no boot situation after installing updates on Windows 7-2008R2 The Windows Servicing Guy
      My Computer


  5. Posts : 100
    Win 7 Ultimate
       #5

    lx07 said:
    From Recovery Environment the DISM commands are installed I believe so nothing to worry about there. And, yes, you will need to enter commands from cmd.exe.

    From Recovery Environment you will get a command prompt like X:\>Sources (see this tutorial - Open Command Prompt at Boot in Windows 10 Windows 10 General Tips Tutorials )

    Then you need to identify which drive letter is assigned to the windows installation on your PC. Most likely it will be C but it may not.

    This tutorial explains how. Run SFC Command in Windows 10 Windows 10 Performance Maintenance Tutorials

    If you haven't run SFC at boot as described in the tutorial above then run it - something like:
    sfc /scannow /offbootdir=C:\ /offwindir=C:\windows

    Then (assuming it is C - if not change C to D or whatever) enter:
    DISM /image:C:\ /cleanup-image /revertpendingactions

    The "/revertpendingactions" switch is optional but according to this blog helps with non-booting situations.

    Getting out of a no boot situation after installing updates on Windows 7-2008R2 The Windows Servicing Guy
    I've come across a similar scenario. Will try this out and report.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:14.
Find Us




Windows 10 Forums