Questions tagged [windows-sandbox]

Use this tag with the Windows Sandbox app. Do not use this tag for other types of sandboxes running on Windows such as containers from Docker, WSL, OCI.

Windows Sandbox is a application created for threat protection. Its primary goal is to allow for the installation of untrusted software or browsing untrusted sites or studying software in a controlled environment. To accomplish this a sandbox (container) is created, used, then destroyed by default.

Note: Various configuration options can/will affect the security of the sandbox. (ref)

29 questions
1
vote
0 answers

How do you install .Net 2.0 in Windows Sandbox on Windows 10

We have an application written in Delphi 2007 which requires the presence of .Net 2.0 in Windows. I have tried to install this application in Windows Sandbox, but it fails since it needs those .Net 2.0 files. When I start optionalfeatures.exe in the…
1
vote
1 answer

Starting the Windows Sandbox from managed code

I'm trying to initialize the Windows Sandbox programatically. My objective is to generate a .wsb config file and then start it. Currently I am using Process.Start() method, but I keep getting an error on the Start() method. This is the code: var…
AsPas
  • 359
  • 5
  • 22
1
vote
2 answers

Start Windows 10 sandbox in predefined state with additional software

Windows 10 has a new sandbox which is based on a very small and fast Hyper-V VM. With every start of the sandbox you get a "fresh" Windows and on every sandbox termination, all changes are discarded. My question is: Is it possible to define in which…
secana
  • 671
  • 6
  • 15
0
votes
1 answer

Cannot access ProductName registry value in Windows Sandbox

I am trying to get the OS information from registry through ProductName key in HKLM\Microsoft\Windows NT\CurrentVersion but it does not seem to be present in my C# application in Windows Sandbox. However, when I check the registry value by manually…
CaesarMyMate
  • 98
  • 1
  • 6
0
votes
0 answers

Windows Sandbox: enable optional features within sandbox

I'm busy writing a powershell script that sets up IIS. I'm using windows Sandbox to test the script but it does not seem to have the "OptionalFeatures.exe" so I cannot enable IIS either manually or via command. Is there a way to set this up in the…
Witted
  • 422
  • 1
  • 4
  • 14
0
votes
0 answers

Does Windows Sandbox not support Cloud Files API?

I am trying to run the Cloud Mirror sample app in Windows Sandbox, and I get "Could not register the sync root, hr 801f000f". The error code appears to correspond to ERROR_FLT_DO_NOT_ATTACH described as "Do not attach the filter to the volume at…
LOST
  • 2,956
  • 3
  • 25
  • 40
0
votes
0 answers

running a program as non-elevated in Windows 11 Sandbox

I have a (.net) program that can normally run either with or without elevated privileges in Windows. In fact, the program itself offers a menu option that allows the user to switch between the two (when used the program effectively relaunches…
Rob
  • 3,488
  • 3
  • 32
  • 27
0
votes
1 answer

How to receive any information from Windows Sandbox when run from terminal or script

I'm working on automating an end-to-end testing process for my desktop app. I have prepared a script that opens the sandbox, installs all dependencies, runs tests and everything, but after testing is done, my script doesn't know when to terminate…
Kamil
  • 11
  • 2
0
votes
0 answers

Visual Studio Code, how to turn off all Trusted / Restricted Mode warnings with PowerShell

I use Visual Studio Code inside Windows Sandbox a lot, and it just gives constant warnings about "Protected mode is intended for safe code browsing.", "You are in restricted mode." etc. How can I turn off all of that? i.e. when I am in Windows…
YorSubs
  • 3,194
  • 7
  • 37
  • 60
0
votes
0 answers

VS Code, associate Windows Sandbox (.wsb) as XML files

I saw this question about associating files without extension as .xml and it made me curious how to achieve this for .wsb Windows Sandbox configuration scripts. How do I make all .wsb files open up as .xml files by default in VS Code?
YorSubs
  • 3,194
  • 7
  • 37
  • 60
0
votes
0 answers

Windows sandbox and Powershell : how to make script executable at startup

I followed tutorial to do so : in wsb: powershell -executionpolicy unrestricted -command "start powershell {-noexit -file C:\scripts\start.ps1}" in start.ps1 : Set-ExecutionPolicy Unrestricted…
user310291
  • 36,946
  • 82
  • 271
  • 487
0
votes
1 answer

How can I install Python3.6 in windows sandbox?

I want to use Python3.6 in windows sandbox, I installed the same in my windows host machine at C:\Users\Local_Admin\AppData\Local\Programs\Python\Python36\ I tried passing python to sandbox through configuration file as mapped folder but no…
0
votes
2 answers

File.Exists returns false,Process.Start() can't start the file,But it actually exists

Note : Windows Sandbox is enabled on my computer. Console.WriteLine(File.Exists(@"C:\Windows\system32\WindowsSandbox.exe")); Console.WriteLine(new FileInfo(@"C:\Windows\system32\WindowsSandbox.exe").Exists); Running the above code in C#…
kxxt
  • 3
  • 2
-1
votes
1 answer

How to use windows sandbox on ryzen 5 processor

So, my goal is to use windows sandbox on my machine. How can I make this work? In my BIOS, SVM is enabled. But when trying to install/activate windows sandbox via "Turn Windows features on or off" it just gives the error tooltip: "Windows Sandbox…
POe
  • 95
  • 4
1
2