WIndows 2016 DISM Offline Repair

compdigit44
compdigit44 used Ask the Experts™
on
On a  Windows 2016, VM I need to do an offline repair of the OS using DISM. Now matter what syntax I use, I cannot get it to work. My CDRom is on E:\ and my OS is on C:\. What is the correct syntax. I have been at this for hours without luck.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
This article is for Windows 10, the link notes that. "The install.wim file must be of the same version, edition as well as language of the operating system you are using."



https://www.backup-utility.com/windows-10/dism-offline-repair-windows-10.html
Distinguished Expert 2018

Commented:
To you, an offline repair means what?
Is windows booted but just no internet access, or are you trying the repair from a command prompt of windows PE?

Author

Commented:
Windows will not boot and in Windows PE
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Author

Commented:
when I try to run sfc in offline mode I keep getting the message " Windows Resource Protection could not preform the requested operation."

Please note, I have run chkdsk on the volume twice, including mounting the vmdk on and other VM and had the same result
Distinguished Expert 2018

Commented:
Could it be that your setup disk that you use for repairs has a lower patch level than your current windows installation?
Please retry with a disk that you have updated to the same level as your OS using commands following this tutorial:
http://woshub.com/integrate-windows-updates-into-windows-8-image/

Then use this command in windows PE:
DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:e:\sources\install.wim

Open in new window

(it works here that way)

Author

Commented:
When I run the command you listed, I get the error: The Cleanup-image option is unknown. Please note, I was careful on the case of the syntax
Distinguished Expert 2018

Commented:
Some browsers misinterpret hyphens ("-"). Please type the hyphen manually and not via copy and paste.

Author

Commented:
I did type it out... no luck
Distinguished Expert 2018

Commented:
Ok, please try this: start your unbootable machine 3 times. After it fails to start for 3 times, it will offer to go to recovery options. There, select troubleshooting ->command line. On that command line, you should get a dism that knows the option "cleanup-image".

Author

Commented:
did that same result
Distinguished Expert 2018

Commented:
May I ask you for a screenshot of that?

Author

Commented:
screenshot.png
Distinguished Expert 2018

Commented:
If I had a server 2016 test VM, I would try to reproduce it right away...but I haven't.
Let me do this tomorrow.
Distinguished Expert 2018
Commented:
Ok, I tried it here on a 2016 Standard VM and it just works.

I tried it both with 2016 RTM (without any updates) and also with 2016 patched with the july patches. I used the "old" RTM ISO as well as an ISO with the july update included - both just work.

Sorry, that's all I can do for now.
However, I read that the error "The Cleanup-image option is unknown" could be due to a corrupted ISO file. Please re-download and retry.

Author

Commented:
Thanks your help. I ended up rebuilding the server and mounting the old VMDK to pull what data we could off of it. I believe the problem stemmed from the old VMDK drive being corrupted.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start Today