From 22cdc6413872be76d110739f8ae98f288570e0d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20Trung=20Hi=E1=BA=BFu?= Date: Sun, 30 Jun 2024 20:15:09 +0700 Subject: [PATCH] Create WindowsSandBox.bat --- WindowsSandBox.bat | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 WindowsSandBox.bat diff --git a/WindowsSandBox.bat b/WindowsSandBox.bat new file mode 100644 index 0000000..dc74541 --- /dev/null +++ b/WindowsSandBox.bat @@ -0,0 +1,14 @@ +@echo off + +set /p choice="Chọn hành động: 1) Bật Sandbox, 2) Tắt Sandbox: " (N1) +if %choice%==1 ( + powershell -Command "Enable-WindowsFeature -Name Microsoft-Windows-Sandbox" + echo Sandbox đã được bật. +) else if %choice%==2 ( + powershell -Command "Disable-WindowsFeature -Name Microsoft-Windows-Sandbox" + echo Sandbox đã được tắt. +) else ( + echo Lựa chọn không hợp lệ. +) + +pause \ No newline at end of file