2

I tried this command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

But, it will give me this feedback message:

'Enable-WindowsOptionalFeature' is not recognized as an internal or external command,
operable program or batch file.
1

2 Answers 2

5

Try DISM instead:
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

See more installation information here.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, Sarah. Only solution that worked for me. 99% of other solutions ask you to turn it on in BIOS or turn on in "Turn on Windows features on/off", but running this command in Powershell is the only thing that enabled hyper-v back on for me.
1

I think you have already found the answer, but I write it for next generation) Just run powershell console as Administrator. I am not archaeologist, I was just looking for string for enabling hyper-v.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.