DISM on a VM

PK Player 71 Reputation points
2021-01-04T15:12:05.607+00:00

Hello

Noob question here.

I have run SFC /scannow on one of our domain controllers. SFC identified corrupt files but was unable to repair them. Ordinarily I would run dism to checkhealth, scanhealth and restorehealth then run SFC again.

However, the domain controller is a virtual machine. I have never run DISM on a HyperV VM before so did not know if there were any potential issues running it - anything to bear in mind, differences running it on a physical machine vs a virtual machine etc.

Both the HyperV host and the DC are running Windows Server 2019.

Thank you.

Mark

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,474 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2021-01-04T15:16:45.717+00:00

    Running dism /online /cleanup-image /restorehealth whether physical or virtual doesn't make any difference. You mentioned a broken domain controller. The much simpler method is to stand up a new one for replacement (shouldn't take more than 30 mins or so to do)

    I'd use dcdiag / repadmin tools to verify health correcting all errors found before starting any operations. Then stand up the new 2019, patch it fully, license it, join existing domain, add active directory domain services, promote it also making it a GC (recommended), transfer FSMO roles over (optional), transfer pdc emulator role (optional), use dcdiag / repadmin tools to again verify health, when all is good you can decommission / demote old one.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,691 Reputation points Microsoft Vendor
    2021-01-05T03:51:16.663+00:00

    Hi,

    There is no difference running DISM between VM and physical machine.

    You can share the error message after running SFC /scannow or describe your issue you are facing. We can do further investigation or research for you to help resolve the issue.

    Thanks,

    Eleven

    If the answer is helpful, please click "Accept Answer" and up-vote it.

    0 comments No comments

  2. PK Player 71 Reputation points
    2021-01-05T09:29:03.963+00:00

    Thank you, both, for responding to my query.

    The Domain Controller is absolutely fine. I run SFC as part of a regular maintenance procedure and while I have managed our AD domains from the early 2000's we have only had DCs on VMs for a year. I am quite new to HyperV and did not want to run DISM without knowing if there were any 'gotchas' running it on a VM.

    Thanks again. I appreciate your help. I would have accepted both answers if I could so accepted the first.