Is it possible to strip the OS to only run executables within a virtual machine

AshRaevern 0 Reputation points
2024-09-27T21:57:16.1033333+00:00

Hello,

I want to be able to run .exe files under any OS. I know there are alternatives to running executables on other OS's but they are unstable and unless Microsoft suddenly allow for us to access their code and documentation I doubt they'll get any better.

I want to look at the problem from another approach where the code to run programs is isolated and used to run programs in a virtual environment utilising windows as a proxy to aid in compatiblity rather than as an OS, allowing you control over how the program iteracts with your systems hardware and other applications.

What do you think?

Regards,

AshRaevern

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,428 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 24,126 Reputation points Microsoft Vendor
    2024-09-30T08:49:04.5533333+00:00

    Hello AshRaevern,

    Thank you for posting in Q&A forum.

    I think you can use PowerShell scripts and remote execution tools like PowerShell Remoting or Azure Run Command to do it.

    1. Write a PowerShell script that runs the .exe file and captures the output.

    1. Use PowerShell Remoting to execute the script on the VM.
    2. Use PowerShell to copy the output file to another machine.

    Here is the link for your reference:

    Debug PowerShell scripts run by Custom Script Extension or Run Command - Virtual Machines | Microsoft Learn

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.