diff --git a/OfflineInsiderEnroll.cmd b/OfflineInsiderEnroll.cmd index b946dc7..6f977f6 100644 --- a/OfflineInsiderEnroll.cmd +++ b/OfflineInsiderEnroll.cmd @@ -23,6 +23,7 @@ pause goto :EOF :START_SCRIPT +set "scriptver=1.1.0" set "FlightSigningEnabled=0" bcdedit /enum {current} | findstr /I /R /C:"^flightsigning *Yes$" >NUL 2>&1 IF %ERRORLEVEL% EQU 0 set "FlightSigningEnabled=1" @@ -30,7 +31,7 @@ IF %ERRORLEVEL% EQU 0 set "FlightSigningEnabled=1" :CHOICE_MENU cls set "choice=" -echo OfflineInsiderEnroll v1.0.0 +echo OfflineInsiderEnroll v%scriptver% echo. echo R - Enroll to Release Preview ring echo S - Enroll to Insider Slow ring @@ -75,7 +76,6 @@ reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Windows reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\SLS\Programs\RingPreview" /f >NUL 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\SLS\Programs\RingInsiderSlow" /f >NUL 2>&1 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\SLS\Programs\RingInsiderFast" /f >NUL 2>&1 -reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v AllowTelemetry /f >NUL 2>&1 goto :EOF :ENROLL @@ -90,12 +90,11 @@ reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /t reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /t REG_SZ /v ContentType /d "%Content%" /f >NUL 2>&1 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /t REG_SZ /v BranchName /d "external" /f >NUL 2>&1 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability" /t REG_SZ /v Ring /d "%Ring%" /f >NUL 2>&1 -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Strings" /t REG_SZ /v StickyXaml /d "This device has been enrolled to the Windows Insider program using a OfflineInsiderEnroll script. If you want to change settings of the enrollment or stop receiving Insider Preview builds, please use the script. Learn more %FancyRing%" /f >NUL 2>&1 +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Strings" /t REG_SZ /v StickyXaml /d "This device has been enrolled to the Windows Insider program using OfflineInsiderEnroll v%scriptver%. If you want to change settings of the enrollment or stop receiving Insider Preview builds, please use the script. Learn more %FancyRing%Windows Insider Program requires your diagnostic data collection settings to be set to Full. You can verify or modify your current settings in Diagnostics & feedback." /f >NUL 2>&1 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" /t REG_DWORD /v UIHiddenElements /d 65535 /f >NUL 2>&1 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" /t REG_DWORD /v UIDisabledElements /d 65535 /f >NUL 2>&1 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" /t REG_DWORD /v UIServiceDrivenElementVisibility /d 0 /f >NUL 2>&1 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" /t REG_DWORD /v UIErrorMessageVisibility /d 192 /f >NUL 2>&1 -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /t REG_DWORD /v AllowTelemetry /d 3 /f >NUL 2>&1 bcdedit /set {current} flightsigning yes >NUL 2>&1 echo Done. diff --git a/readme.md b/readme.md index 0a630b0..6dc2972 100644 --- a/readme.md +++ b/readme.md @@ -21,11 +21,11 @@ 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*. -This script changes your telemetry settings to reflect this during the process -of enabling *Windows Insider Program* access. If you have used any "privacy" -scripts or changed *Allow telemetry* via Group Policy, changes made by this -script may not get reflected and you may not be able to receive *Insider -Preview* builds using Windows Update. +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*. #### Restoring Windows Insider Program to default options To restore *Windows Insider Program* to default settings simply choose `Stop