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.
- 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.
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.
- Target Architecture: x64 (Strict Process Requirement)
- Target Framework: .NET Framework 4.8
- Compiler Solution: Legacy Windows MSBuild (
v4.0.30319)
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=x64The resulting executable binary will be generated under the following directory path:
.\bin\x64\Release\AMSIBypassRunspace.exe
- 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.