1.    25 Sep 2017 #1
    Join Date : Sep 2017
    Posts : 24
    10

    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 ComputerSystem Spec
  2.    25 Sep 2017 #2
    Join Date : Jul 2015
    Posts : 3,722
    10 Pro

    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 ComputerSystem Spec
  3.    25 Sep 2017 #3
    Join Date : Sep 2017
    Posts : 24
    10
    Thread Starter

    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 ComputerSystem Spec
  4.    25 Sep 2017 #4
    Join Date : Jul 2015
    Posts : 3,722
    10 Pro

    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 ComputerSystem Spec

 


Similar Threads
Thread Forum
dism /Online /?dism /online /cleanup- does not work, Error: 0x800f0950
140589
Performance & Maintenance
DISM: How long should the DISM scan take to complete ?
Normally when a tests completes without reporting anything wrong I'm happy camper. I have been wanting to ask a question about the DISM "scan" completing rather quickly. I seem to remember the command taking some time to finish, but for a while...
Performance & Maintenance
Windows DISM and SFC fail to fix corruptions. DISM error 1726 / WIN 10
Hello, as you already know from the title I have problems with the windows utilities that fix corruptions. After I upgraded to build 1607, those utilities worked, but now after a few weeks I tried to do them again after some driver updates just to...
Performance & Maintenance
Solved DISM Error: 1812 - Can't run DISM or SFC, Win apps won't open
Hello, I've run into a problem where my windows apps will not open. Calc opens with a gray screen just showing the calculator logo...calendar opens to a blue screen only showing the calendar logo, etc. I can't run SFC /scannow due to error...
General Support
Continuity of OS environment
Hello everybody, I want to understand more about how Windows 10 manages windows. Let's say that, in a hypothetical scenario, I have just started a particularly demanding program. The window appears, but immediately becomes unresponsive....
General Support
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 09:08.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums