Browsed by
Category: Interesting or Cool

Can’t install Windows Sandbox on Windows 10

Can’t install Windows Sandbox on Windows 10

Windows Sandbox is a great little completely isolated environment in which to test out software you’re not sure is safe or for experiments that might corrupt your environment/installations. It pops up a virtual machine running Windows 10/11, is completely isolated, and then deletes everything when shut down.

However, it’s not always easy to get started. Even after installing the latest Windows 10 updates and turning all on virtualization features in bios, I still could not see the Windows Sandbox feature in the Turn Windows Features On and Off program.

It turns out you may need to do some extra setup, and the entire process is here in tenforums. They have a script (below) that helps, but there may even be other steps to follow and they’re all outlined on the post.

@echo off

echo Checking for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

echo Permission check result: %errorlevel%

REM --> 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

adf

She’s not wrong

She’s not wrong

“You appear on a weekly television program and are non-profit? Boy, have you got a crazy sponsor.”

27 Rather, God chose those who were regarded as foolish by the world to shame the wise; God chose those in the world who were weak to shame the strong. 28 God chose those in the world who were lowly and despised, those who count for nothing, to reduce to nothing those who were regarded as worthy, 29 so that no one could boast in the presence of God.

1 Corinthians 1:27-29
Psychoacoustics

Psychoacoustics

Binaural beats, tritone paradox, pitch and tempo circularity, wason effect for faking high performance audio, biological audio effects, and using missing fundamentals for playback on phones and low-quality devices? Casey Connor demonstrates some fascinating audio effects and illusions in his multi-part series of audio illusions and effects. Some of them are used to simulate high performance playback on cheap devices like phones. Good headphones are required for some of them.

Here’s the first video go get you started:

Bare Metal Gaming!

Bare Metal Gaming!

Inkbox decides everything in computing since sending man to the moon was a bad idea. Even operating systems and programming languages!

He sets out to write a complete clone of Zaxxon in assembly language with no operating system. He handles display, keyboard, mouse input, booting the system himself – and walks us through it all.

This kind of coding is exactly what got me into computer science as a kid. Watching demo scene videos and learning to program right to the display buffer with assembly was an era we don’t see much anymore. Still, I did get to make a graphics app that directly booted the display controller on recent hardware for an embedded platform (but that’s a story for another time).

How does it go? Awesome! Open Source Project on GitHub: https://github.com/InkboxSoftware/spacegamex64/