mmahinay
mmahinay

Reputation: 171

How to enable Hyper-V with Windows PowerShell?

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.

Upvotes: 2

Views: 6915

Answers (2)

Lana
Lana

Reputation: 1044

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.

Upvotes: 1

Sarah Cooley
Sarah Cooley

Reputation: 190

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

See more installation information here.

Upvotes: 4

Related Questions