MS-Build Runspace
A lightweight, high-performance custom administrative console that implements an isolated, dedicated 64-bit PowerShell Runspace environment. It features dual-mode execution logic supporting both native Windows utilities and standard PowerShell pipelines within an advanced language context.
- STARS
- 3
- FORKS
- 1
- OPEN ISSUES
- 0
- LICENSE
- NONE
- CREATED
- 01 OCT 2026
- LAST PUSH
- 2MO AGO
- C#100%
1 commits in the past year.
Technical Core Architecture
- Execution Isolation: Runs within a unique programmatic runspace (
System.Management.Automation.Runspaces.Runspace) bypassing default host limitations. - Language Mode Enforcement: Configured explicitly to
FullLanguagemode to guarantee unhindered administrative automation capabilities. - Dynamic Session Syncing: Constantly synchronizes the current execution environment directory (
Environment.CurrentDirectory) with the active Runspace session path.
Compilation Requirements
This project is built using strictly backward-compatible C# 5 syntax, enabling compilation on native legacy infrastructure without requiring visual development suites or external package managers.
Build Environment
- Target Architecture: x64 (Strict Process Requirement)
- Target Framework: .NET Framework 4.8
- Compiler Solution: Legacy Windows MSBuild (
v4.0.30319)
Building the Project
Execute the compilation sequence from an escalated PowerShell or Command Prompt terminal targeting the local .csproj configuration:
# Execute compilation using the native 64-bit MSBuild engine
& "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe" .\Bypass.csproj /p:Configuration=Release /p:Platform=x64
The resulting executable binary will be generated under the following directory path:
.\bin\x64\Release\AMSIBypassRunspace.exe
Usage Configuration
- Execution: The process monitors its host container state at startup. It will actively reject execution and terminate if initialized within a 32-bit (x86) subsystem.
- Navigation & Environment: Traditional shell shortcuts like
exit,clear, andclsare emulated directly within the terminal loop.