Skip to content

Instantly share code, notes, and snippets.

@Neko7sora
Last active July 13, 2021 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neko7sora/22ecdfba6174432367078614bbd5119c to your computer and use it in GitHub Desktop.
Save Neko7sora/22ecdfba6174432367078614bbd5119c to your computer and use it in GitHub Desktop.
Windows Home Enable Hyper-V(もしなんかしらがあったとき用)

Windows Home Enable Hyper-V(もしなんかしらがあったとき用)

  1. batファイル作成 2.管理者として実行 3.Y キーを押してコンピュータを再起動

余談: Windows Proにあるけど、Windows Homeに無い機能は一応ファイルとしてデフォルトとして入っているので、もじかしたら有効化できる可能性があります。

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment