damienvanrobaeys / Run-in-Sandbox

Run PS1, VBS, CMD, EXE, MSI, Intunewin, MSIX, or extract ISO, ZIP in Windows Sandbox very quickly just from a right-click
https://www.systanddeploy.com/2023/06/runinsandbox-quick-way-to-runextract.html
763 stars 86 forks source link

Could not load file or assembly Operation is not supported #8

Closed SeasonalFerret closed 4 years ago

SeasonalFerret commented 4 years ago

Error is received when attempting to open .exe files.

uvppNhNb48

Fix for me: Navigate to C:\ProgramData\Run_in_Sandbox\assembly, right-click files, and unblock.

https://stackoverflow.com/questions/34400546/could-not-load-file-or-assembly-operation-is-not-supported-exception-from-hres

I am unsure how to reproduce this issue or what caused it, but it might be worth putting this error + fix in a FAQ or potential fix/issues.

damienvanrobaeys commented 4 years ago

So you have this once you try to run random exe from right click in sandbox ? This is a known issue after downloading file from the web. You can unblock a folder by doing gci yourfolder -recurse | unblock-file This is a nice feedback too, i will implement it in the main script.

damienvanrobaeys commented 4 years ago

I added this in the new script that I will upload and indicates this in the how to guide. Thanks for the feedback.