Securely donate CPU time with Windows Sandbox

Published Apr 06 2020 12:11 PM 10.5K Views
Microsoft

With Windows Sandbox, you can run any win32 desktop application you wish with a pristine configuration every time you start it. It allows you to do virtually whatever you want within a secure isolated desktop environment without requiring any cleanup after the fact.

 

For example, Windows Sandbox allows you to contribute time on your Windows 10 PC towards fighting COVID-19. Here is how it works: using Windows Sandbox you can run the open-source Folding@Home app to help simulate protein dynamics. Folding@Home is one of the most popular distributed computing projects bringing together citizen scientists who volunteer to run simulations of protein dynamics on their personal computers to fight COVID-19 and other diseases. For more information about the project itself, please visit the Folding@Home Knowledge Base.

 

Folding@Home in Windows SandboxFolding@Home in Windows Sandbox

 

To do this we have provided a simple PowerShell script that automatically downloads the latest Folding@Home client and launches it in Windows Sandbox. If Windows sandbox is not enabled on your system, the script will enable the feature and reboot your system. After the reboot, just launch the script again and it will start Windows sandbox to run the Folding@Home client. The PowerShell script can be downloaded from our GitHub repository here.

 

PowerShell scriptPowerShell script

 

How to Get Involved  

 

We have also created a GitHub open-source repository to store this script and allow you to submit your own ideas for running applications in Windows Sandbox.

 

Have a suggestion for Windows Sandbox or encountering issues ? We welcome your feedback, which can be submitted through feedback hub here.

 

Cheers,

Brandon Smith, Margarit Chenchev, Paul Bozzay, Hari Pulapaka, Judy Liu & Erick Smith

9 Comments
%3CLINGO-SUB%20id%3D%22lingo-sub-1285749%22%20slang%3D%22en-US%22%3ESecurely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1285749%22%20slang%3D%22en-US%22%3E%3CP%3EWith%20Windows%20Sandbox%2C%20you%20can%20run%20any%20win32%20desktop%20application%20you%20wish%26nbsp%3Bwith%20a%20pristine%20configuration%20every%20time%20you%20start%20it.%20It%20allows%20you%20to%20do%20virtually%20whatever%20you%20want%20within%20a%20secure%20isolated%20desktop%20environment%20without%20requiring%20any%20cleanup%20after%20the%20fact.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20Windows%20Sandbox%20allows%20you%20to%20contribute%20time%20on%20your%20Windows%2010%20PC%20towards%20fighting%20COVID-19.%20Here%20is%20how%20it%20works%3A%20using%20Windows%20Sandbox%20you%20can%20run%20the%20open-source%20Folding%40Home%20app%20to%20help%20simulate%20protein%20dynamics.%20Folding%40Home%20is%20one%20of%20the%20most%20popular%20distributed%20computing%20projects%20bringing%20together%20citizen%20scientists%20who%20volunteer%20to%20run%20simulations%20of%20protein%20dynamics%20on%20their%20personal%20computers%20to%20fight%20COVID-19%20and%20other%20diseases.%20For%20more%20information%20about%20the%20project%20itself%2C%20please%20visit%20the%20%3CA%20href%3D%22https%3A%2F%2Ffoldingathome.org%2Fdig-deeper%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EFolding%40Home%20Knowledge%20Base%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fah_screenshot.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182435i4E3F7151FF13096B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22fah_screenshot.png%22%20alt%3D%22Folding%40Home%20in%20Windows%20Sandbox%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFolding%40Home%20in%20Windows%20Sandbox%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20do%20this%20we%20have%20provided%20a%20simple%20PowerShell%20script%20that%20automatically%20downloads%20the%20latest%20Folding%40Home%20client%20and%20launches%20it%20in%20Windows%20Sandbox.%20If%20Windows%20sandbox%20is%20not%20enabled%20on%20your%20system%2C%20the%20script%20will%20enable%20the%20feature%20and%20reboot%20your%20system.%20After%20the%20reboot%2C%20just%20launch%20the%20script%20again%20and%20it%20will%20start%20Windows%20sandbox%20to%20run%20the%20Folding%40Home%20client.%20The%20PowerShell%20script%20can%20be%20downloaded%20from%20our%20GitHub%20repository%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FWindows-Sandbox-Utilities%2Fblob%2Fmaster%2FFolding%2520In%2520Sandbox%2Finstall_folding_sandbox_on_host.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22script_example.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182436i540C5030E2F92032%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22script_example.png%22%20alt%3D%22PowerShell%20script%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPowerShell%20script%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1380293250%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%20id%3D%22toc-hId--1380270126%22%3E%3CSPAN%3EHow%20to%20Get%20Involved%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20also%20created%20a%20GitHub%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FWindows-Sandbox-Utilities%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eopen-source%20repository%3C%2FA%3E%20to%20store%20this%20script%20and%20allow%20you%20to%20submit%20your%20own%20ideas%20for%20running%20applications%20in%20Windows%20Sandbox.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHave%20a%20suggestion%20for%20Windows%20Sandbox%20or%20encountering%20issues%20%3F%20We%20welcome%20your%20feedback%2C%20which%20can%20be%20submitted%20through%20feedback%20hub%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fwindowssandbox-fb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheers%2C%3C%2FP%3E%0A%3CP%3EBrandon%20Smith%2C%20Margarit%20Chenchev%2C%20Paul%20Bozzay%2C%20Hari%20Pulapaka%2C%20Judy%20Liu%20%26amp%3B%20Erick%20Smith%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1285749%22%20slang%3D%22en-US%22%3E%3CP%3ERun%20%3CA%20href%3D%22mailto%3AFolding%40home%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EFolding%40Home%20in%20Windows%20Sandbox%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1286681%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1286681%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20argument%20'.%5Cinstall_folding_sandbox_on_host.ps1'%20to%20the%20-File%20parameter%20does%20not%20exist.%20Provide%20the%20path%20to%20an%20existing%20'.ps1'%20file%20as%20an%20argument%20to%20the%20-File%20parameter.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1286811%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1286811%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F611828%22%20target%3D%22_blank%22%3E%40TempleOfFive%3C%2FA%3E%26nbsp%3BThanks%20for%20trying%20it%20out!%20Please%20make%20sure%20you're%20running%20the%20given%20command%20in%20the%20same%20directory%20as%20the%20powershell%20script.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1286976%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1286976%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20brandon%2C%20missed%20the%20part%20where%20i%20had%20to%20download%20the%20ps%20script%20first.%26nbsp%3B%20thx%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1287629%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1287629%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20Sharing%20with%20the%20Community%20!%20I%20published%20this%20post%20on%20social%20media%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1289423%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1289423%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20is%20a%20bit%20of%20a%20problem%20for%20me.%20The%20script%20says%20something%20about%20a%20system%20file%20which%20cannot%20be%20found%20which%20is%20mentioned%20at%20line%20119%2C%20which%20is%20the%20path%20to%20WindowsSandbox%20or%20the%20path%20to%20the%20configuration%20file.%20But%20when%20I%20try%20to%20start%20sandbox%20manually%20from%20the%20Powershell%20it%20tells%20me%20that%20C%3A%5CWINDOWS%5Csystem32%5CWindowsSandbox.exe%20does%20not%20exist.%20The%20installation%20file%20for%20FAH%20however%20has%20noticed%20that%20I%20have%20WindowsSandbox%20installed.%20And%20I%20have%20also%20checked%2C%20there%20is%20a%20WindowsSandbox.exe%20file%20located%20at%20C%3A%5CWINDOWS%5Csystem32.%20What%20should%20I%20do%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291381%22%20slang%3D%22de-DE%22%3ESubject%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291381%22%20slang%3D%22de-DE%22%3E%3CP%3ESandbox%20Windows%2010%20Entreprise%20asks%20for%20an%20activation%20key.%20Should%20I%20ignore%20this%20message%20in%20the%20info%20center%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1292836%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1292836%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F613162%22%20target%3D%22_blank%22%3E%40oak2paper%3C%2FA%3E%26nbsp%3BI'm%20not%20exactly%20sure%20what%20could%20be%20causing%20this%20issue%20for%20you%2C%20but%20it's%20possible%20it's%20something%20to%20do%20with%20your%20system%20path%20or%20powershell%20configuration.%20Regardless%2C%20it%20seems%20like%20the%20script%20gets%20far%20enough%20to%20generate%20the%20configuration%20files%20and%20FAH%20installer%2C%20so%20you%20should%20just%20be%20able%20to%20double-click%20on%20the%20Windows%20Sandbox%20configuration%20file%20to%20get%20things%20running.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1292844%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1292844%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F614075%22%20target%3D%22_blank%22%3E%40tempora_mutantur110%3C%2FA%3E%26nbsp%3BWe%20haven't%20encountered%20this%20issue%20specifically%2C%20so%20we%20would%20need%20more%20information%20about%20your%20system%20to%20determine%20what%20the%20issue%20is.%20I%20suggest%20submitting%20feedback%20through%20the%20feedback%20portal%20with%20a%20screenshot%20or%20logs%20and%20we%20can%20look%20into%20it%20further.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fwindowssandbox-fb%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fwindowssandbox-fb%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1293026%22%20slang%3D%22en-US%22%3ERe%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1293026%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F614075%22%20target%3D%22_blank%22%3E%40tempora_mutantur110%3C%2FA%3E%26nbsp%3BThis%20is%20actually%20a%20known%20issue%2C%20so%20you%20can%20ignore%20that%20message%20and%20use%20Sandbox%20as%20you%20normally%20would.%20This%20will%20be%20fixed%20in%20a%20future%20update.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1318003%22%20slang%3D%22de-DE%22%3ESubject%3A%20Securely%20donate%20CPU%20time%20with%20Windows%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1318003%22%20slang%3D%22de-DE%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3Ewhile%20running%20the%20powershell%20script%20above%20I%20received%20this%20error%20message%3A%3C%2FP%3E%3CP%3E%22Invoke-WebRequest%20%3A%20The%20remote%20server%20returned%20an%20error%3A%3CBR%20%2F%3E(404)%20Not%20found%20In%20C%3A'Windows'System32'install_folding_sandbox_on_host.ps1%3A33%20Characters%3A19%3CBR%20%2F%3E%2B%20...%20ller_size%20%3D(Invoke-WebRequest%20%24installer%20-Method%20Head%20-UseBasicParsin%20...%20%2B%20CategoryInfo%3A%20InvalidOperation%3A%20(System.Net.httpWebRequest%3AHttpWebRequest)%20%5BInvoke%20WebRequest%5D%2C%20WebException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20WebCmdletWebResponseException%2CMicrosoft.PowerShell.Commands.InvokeWebRequestCommand%22%20....%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EI%20suspect%20the%20error%20is%20related%20to%20the%20release%20of%20the%20latest%20version%20%22fah-installer-7.6.9.exe%22%20on%20April%2017.%3C%2FP%3E%3CP%3EWell...%20I%20downloaded%20the%20new%20version%20manually%20and%20started%20it%20in%20the%20Windows%20Sandbox.%3C%2FP%3E%3CP%3E-----------------------------------------------------------------------------------------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUpdate%3A%3CBR%20%2F%3EI%20just%20noticed%20that%20a%20new%20version%20of%20the%20script%20was%20released%20and%20the%20bug%20was%20fixed.%20Everything%20works%20now.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Version history
Last update:
‎Apr 06 2020 12:11 PM
Updated by: