Sandbox
Sandbox ๊ด๋ จ
Enable and Use Windows Sandbox on Windows 11 Home Edition

Important
If you are running Windows 11 Pro Edition, you can directly skip to this step and enable the required features to start using the Windows Sandbox virtual environment on your PC.
Before anything, you need to enable virtualization in the BIOS or UEFI menu. For that, you need to boot into the BIOS/ UEFI menu on your Windows 11 PC and look for "Virtualization", or "SVM Mode". Now, enable it and restart your PC.
Note
If you wish to learn about what is UEFI in detail and understand why modern computers are moving away from BIOS, read the linked article.

After logging into your PC, open Notepad and paste the below content.
@echo off
echo Checking for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
echo Permission check result: %errorlevel%
:: --> If error flag set, we do not have admin.
IF '%errorlevel%' NEQ '0' (
ECHO Requesting administrative privileges...
GOTO UACPrompt
) ELSE ( GOTO gotAdmin )
:UACPrompt
ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
ECHO UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
ECHO Running created temporary "%temp%\getadmin.vbs"
TIMEOUT /T 2
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
ECHO Batch was successfully started with admin privileges
ECHO .
CLS
Title Sandbox Installer
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Containers*.mum >sandbox.txt
for /f %%i in ('findstr /i . sandbox.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del sandbox.txt
Dism /online /enable-feature /featurename:Containers-DisposableClientVM /LimitAccess /ALL
pause


.bat
extension at the end to save it as a batch file. Make sure there is no .txt
or other file extension at the end. Finally, click on "Save".


optionalfeatures.exe
and hit Enter.

์๋์ฐ11 Home์์ Hyper-V ์ค์น ๋ฐ ํ์ฑํ ๋ฐฉ๋ฒ
https://geekorea.com/how-to-enable-hyper-v-windows11-home/
์ด ๊ฐ์ด๋๋ Windows 11 Home์์ Hyper-V ์ค์น ๋ฐ ํ์ฑํ ๋ฐฉ๋ฒ์ ๋ํด ์ค๋ช ํฉ๋๋ค.
Windows 11 ํ๊ฒฝ ๋ฟ๋ง ์๋๋ผ Linux ๋ฑ ๋ค์ํ ๋ฒ์ ์ ์ด์ ์ฒด์ ๋ฅผ ์ฌ์ฉํ๋ ์ฌ์ฉ์๋ผ๋ฉด ๊ฐ์ ๋จธ์ ํ๋ซํผ์ ์์ด์๋ ์๋ ์ค์ํ ๊ธฐ๋ฅ์ ๋๋ค.
Hyper-V๋ Windows์์ ๊ฐ์ํ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๊ธฐ ์ํด Microsoft์์ ๊ฐ๋ฐํ ํ๋์จ์ด ๊ธฐ๋ฐ ํ์ดํผ๋ฐ์ด์ ์ ๋๋ค.
์ํ๊น๊ฒ๋ ๋ง์ ๋ถ๋ค์ด ์ฌ์ฉํ๊ณ ์๋ Windows 11 Home ๋ฒ์ ์์๋ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๋ฌผ๋ก ๊ฐ์ํ ๊ธฐ๋ฅ์ ์ง์ํ๋ ํ์ฌ ๋๊ตฌ๋ฅผ ์ ํํ ์ ์์ผ๋ฉฐ, ์ฌ์ฉ์ ์ธก๋ฉด์์ Hyper-V๋ ๊ธฐ๋ฅ์ ์ธ ๋ถ๋ถ์ ๋ค์ ๋ถ์กฑํ๊ฒ ๋๊ปด์ง ์ ์์ต๋๋ค.
๊ทธ๋ฌ๋ Hyper-V๋ ๋๋ถ๋ถ์ ๋๋ผ์ด๋ฒ๊ฐ ํ๋์จ์ด ๊ณ์ธต๊ณผ ๋ ๋ฆฝ์ ์ผ๋ก ์คํ๋๋ฏ๋ก ๊ฐ์ ํ๊ฒฝ์ ์ ์ง ๊ด๋ฆฌํ๋๋ฐ ๋๋ ์ค๋ฒํค๋๊ฐ ์ ์ด ์๋๊ฐ ๋น ๋ฆ ๋๋ค.
๋คํํ Windows 11 Home ๋ฒ์ ์์๋ Hyper-V๋ฅผ ํ์ฑํํ ์ ์๋ ๋ฐฉ๋ฒ์ด ์์ต๋๋ค.
Hyper-V ์ค์น ์คํฌ๋ฆฝํธ ์์ฑ

notepad
์
๋ ฅ ํ Enter ํค๋ฅผ ๋๋ฌ ๋ฉ๋ชจ์ฅ์ ์คํํฉ๋๋ค.์ด์ ๋ฉ๋ชจ์ฅ์ ๋ค์ ์คํฌ๋ฆฝํธ๋ฅผ ๋ณต์ฌํ์ฌ ๋ถ์ฌ๋ฃ์ต๋๋ค.
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
PAUSE
![์คํฌ๋ฆฝํธ ์
๋ ฅ ํ ๋ฉ๋ด์์ **[ํ์ผ > ๋ค๋ฅธ ์ด๋ฆ์ผ๋ก ์ ์ฅ]**์ ์ ํํ๊ฑฐ๋ ๋จ์ถํค <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> ํค๋ฅผ ๋๋ฌ ํ์ผ์ ์ ์ฅํฉ๋๋ค.](https://geekorea.com/wp-content/uploads/2024/01/03.enable_hyper-v_win11_home.png)
ํ์ผ์ ์ ์ฅํ ๋ โํ์ผ ํ์โ์ "๋ชจ๋ ํ์ผ(.)"์ ์ ํํ๊ณ ํ์ผ ์ด๋ฆ์ ์ง์ ํฉ๋๋ค.
์๋ฅผ ๋ค์ด ํ์ผ ์ด๋ฆ์ "Hyper-v"๋ก ๋ณ๊ฒฝ ํ ".bat" ํ์ฅ์๋ฅผ ์ถ๊ฐํ์ฌ ๋ฐฐ์น ํ์ผ๋ก ์ ์ฅํฉ๋๋ค.