Skip to content

Commit

Permalink
v2.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abbodi1406 committed Oct 8, 2021
1 parent eb0a830 commit 70d26b4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
11 changes: 9 additions & 2 deletions OfflineInsiderEnroll.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@setlocal DisableDelayedExpansion
@echo off
set "scriptver=2.6.1"
set "scriptver=2.6.2"

set "_cmdf=%~f0"
if exist "%SystemRoot%\Sysnative\cmd.exe" (
Expand Down Expand Up @@ -45,8 +45,8 @@ if %ERRORLEVEL% equ 0 set "FlightSigningEnabled=1"

:CHOICE_MENU
cls
title OfflineInsiderEnroll v%scriptver%
set "choice="
echo OfflineInsiderEnroll v%scriptver%
echo.
echo 1 - Enroll to Dev Channel
echo 2 - Enroll to Beta Channel
Expand Down Expand Up @@ -160,6 +160,13 @@ reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Selection" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Selection" /f /t REG_DWORD /v UIUsage /d 26
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Selection" /f /t REG_DWORD /v OptOutState /d 25
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Selection" /f /t REG_DWORD /v AdvancedToggleState /d 24
reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\WindowsUpdate" /f /t REG_DWORD /v AllowWindowsUpdate /d 1
reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup" /f /t REG_DWORD /v AllowUpgradesWithUnsupportedTPMOrCPU /d 1
reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /f /t REG_DWORD /v BypassRAMCheck /d 1
reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /f /t REG_DWORD /v BypassSecureBootCheck /d 1
reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /f /t REG_DWORD /v BypassStorageCheck /d 1
reg add "HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig" /f /t REG_DWORD /v BypassTPMCheck /d 1
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\PCHC" /f /t REG_DWORD /v UpgradeEligibility /d 1
if %build% LSS 21990 goto :EOF
(
echo Windows Registry Editor Version 5.00
Expand Down
35 changes: 20 additions & 15 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,50 @@
OfflineInsiderEnroll
--------------------

![](https://i.imgur.com/hzusXzd.png)
### Description
OfflineInsiderEnroll is a simple Windows Command Prompt script to enable access
to the Windows Insider Program on machines not signed in with Microsoft Account.

This script is compatible only with Windows 10 RS5 and later.
This script is compatible only with Windows 11 or Windows 10 version 1809 and later.

### Usage
This script requires administrative priviliges to run. You can simply execute it
by right clicking it > `Run as Administrator`.

#### Installation and configuration changes
After starting the script offers selection of *Windows Insider Program* channels.
After starting, the script offers selection of __*Windows Insider Program*__ channels.
To make a selection, press a letter coresponding to option you choose and press
ENTER.

If the machine was not enrolled to the Insider Program, you will get prompted to
restart your machine to enable *Microsoft Flight Signing* which is required by
*Windows Insider Program*.
restart your machine to enable *`Microsoft Flight Signing`* which is required by
*`Windows Insider Program`*.

**Notice:** Windows Insider Program requires telemetry to be set to *Full*.
**Notice:** Windows Insider Program requires telemetry to be set to *`Full`*.
After enrolling your machine to the *Windows Insider Program* please make sure
that your diagnostic data collection settings are set to *Full*. Some *Insider
Preview* builds may not get offered in *Windows Update* if you do not have
correct telemetry settings. You can verify or modify your telemetry settings in
*Settings* > *Privacy* > *Diagnostics & feedback*.
that your diagnostic data collection settings are set to *`Full`*. Some `Insider
Preview` builds may not get offered in *`Windows Update`* if you do not have
correct telemetry settings.

You can verify or modify your telemetry settings as follows:

__Windows 11__: *`Settings`* > *`Privacy and Security`* > *`Diagnostics & feedback`*

__Windows 10__: *`Settings`* > *`Privacy`* > *`Diagnostics & Feedback`*

#### Restoring Windows Insider Program to default options
To restore *Windows Insider Program* to default settings simply choose `Stop
receiving Insider Preview builds` in OfflineInsiderEnroll. You will get prompted
to reboot, because this option will disable *Microsoft Flight Signing*.
To restore *`Windows Insider Program`* to default settings simply choose `Stop
receiving Insider Preview builds` in `OfflineInsiderEnroll Script`. You will get prompted
to reboot, because this option will disable *`Microsoft Flight Signing`*.

### How does this work?
This script takes advantage of undocumented `TestFlags` registry value.
If this value is set to `0x20`, all access to online *Windows Insider* services
gets disabled. Because of this, we can set our own *Windows Insider Preview*
configuration without being overriden by the contact to the service. Since
Windows Update does not check if machine is actually enrolled to the program,
`Windows Update` does not check if machine is actually enrolled to the program,
you will get offered *Insider Preview* builds by just setting correct values in
the registry.

### License
This project is licensed under the MIT License. See `LICENSE` for details.
This project is licensed under the MIT License and GNU License. See `LICENSE` for details.

0 comments on commit 70d26b4

Please # to comment.