Skip to content

Windows Subsystem for Android

Download

Go to https://store.rg-adguard.net/. In the URL field introduce https://www.microsoft.com/en-us/p/windows-subsystem-for-android/9p3395vx91nr.

From the list of packages download [...].WindowsSubsystemForAndroid_[...].msixbundle (the one that ends in .msixbundle and is over a Gb, at the bottom).

Install

Open a PowerShell as Administrator and install the app with:

Add-AppxPackage -Path <path_to_msixbundle_file>

Enable Debugging

Open the freshly installed Windows Subsystem for Android app and enable developer mode.

Connect over adb

If you do not have adb already, download and extract ADB platform tools from https://dl.google.com/android/repository/platform-tools-latest-windows.zip.

To start the Android subsystem and obtain an IP address open the file manager in Android; first option in Windows Subsystem for Android, click on the icon on the right, in the IP address section click refresh, that is the IP of the Android "device".

To connect over adb to the Android subsystem open a CMD as a normal user and navigate to the extracted files from ADB platform tools. Connect to Android with:

.\adb connect 127.21.203.121:58526

127.21.203.121 is the IP of the Android subsystem and 58526 is the port by default. You can also connect to 127.0.0.1:58526.

Disconnect the device with

.\adb disconnect 127.21.203.121:58526

Sideload an app with adb

Install an app with:

.\adb install C:\Path\to\app.apk

Install Windows 11 without TPM or Secure Boot

Rufus can create a bootable media without the need for TPM nor Secure Boot.

To do it manually check the commit on rufus' github or from this article

First, download the official ISO from MS. Once you have the ISO, use rufus to write the ISO to a USB key. Don't boot it up yet, as we need to make changes to "boot.wim". Now, look in the sources folder for the file "boot.wim". This is a Windows Image file which contains the registry keys for the setup. You can actually mount this image and edit it.

Here is how. First, lets get the wim info from command-line so run "cmd" as Administrator, you can right-click start menu and "Command Prompt (Admin)".

Dism /Get-WimInfo /WimFile:D:\sources\boot.wim

Details for image : D:\sources\boot.wim

Index : 1
Name : Microsoft Windows PE (x64)
Description : Microsoft Windows PE (x64)
Size : 2,285,335,478 bytes

Index : 2
Name : Microsoft Windows Setup (x64)
Description : Microsoft Windows Setup (x64)
Size : 2,343,897,789 bytes

OK, so we need to use index 2 here. Let mount and edit the registry and add the two keys to bypass checks:

Dism /Mount-Wim /WimFile:D:\sources\boot.wim /index:2 /MountDir:C:\_mount

NOTE: You need to create the _mount directory first!

  1. reg load HKLM\OFFLINE D:\_mount\Windows\System32\Config\SYSTEM
  2. Open Registry Editor (regedit) on the host, you will notice it now contains a temporary hive HKLM\OFFLINE
  3. Go to: HKEY_LOCAL_MACHINE\OFFLINE\SYSTEM\Setup
  4. Click on Edit > New > Key to create a new key named LabConfig.
  5. Inside LabConfig, create New > DWORD (32-bit)
    • BypassTPMCheck 1
    • BypassSecureBootCheck 1
  6. Close regedit.
  7. reg unload HKLM\OFFLINE

Dism /Unmount-Image /MountDir:C:\_mount /Commit

The /Commit switch takes care of saving all changes to boot.wim file.


Install Windows 11 in offline mode

To open a CMD when you are prompted to connect to a network press shift+F10.

Bypass out-of-box experience

This will reboot the computer and display and option to skip network configuration.

OOBE\BYPASSNRO

Kill Network Connection Flow Process

This will bypass the "let’s connect you to a network" screen

taskkill /F /IM oobenetworkconnectionflow.exe

Or in Task Manager taskmgr end "Network Connection Flow".

Source