Skip to content

Commit

Permalink
Create WindowsSandBox.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuck committed Jun 30, 2024
1 parent 73a90cd commit 22cdc64
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions WindowsSandBox.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 22cdc64

Please sign in to comment.