1. summersuns

    summersuns MDL Member

    Oct 26, 2014
    150
    21
    10
    Have I just reached end of life?

    Edition Windows 10 IoT Enterprise LTSC
    Version 21H2
    Installed on ‎18/‎12/‎2022
    OS build 19044.2965
    Experience Windows Feature Experience Pack 1000.19041.1000.0

    If that is the case it Might explain why
    KB5027215
    installed then reverted to previous version not once but twice.
    After the two goes at installation I did what any self respecting admin would do - Gave up!

    cheers
     
  2. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,961
    2,834
    120
  3. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,437
    95,277
    450
    That will solve it, amazing find...
     
  4. summersuns

    summersuns MDL Member

    Oct 26, 2014
    150
    21
    10
  5. summersuns

    summersuns MDL Member

    Oct 26, 2014
    150
    21
    10
    Thank you for your reply. I had already checked with the Microsoft catalogue:
    UPDATED 6/13/23
    IMPORTANT
    Windows 10, version 21H2 is at end of service today, June 13, 2023. We will continue to service the following editions of Windows 10, version 21H2: Windows 10 Enterprise and Education, Windows 10 IoT Enterprise, and Windows 10 Enterprise multi-session.

    All editions of Windows 10, version 22H2 will continue to receive security and optional releases.
     
  6. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,961
    2,834
    120

    Obviously you will get the enablement packages which change the cosmetic description, when needed, if applicable, via WU.
     
  7. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,845
    13,807
    340
    #3308 xinso, Jun 18, 2023
    Last edited: Jun 19, 2023
    Enterprise families.
    Code:
    Enterprise
    Education
    IoTEnterprise
    ServerRdsh
    
    Thanks.
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,437
    95,277
    450
  9. qwesta

    qwesta MDL Senior Member

    Jul 22, 2011
    314
    110
    10
    @Enthousiast
    do you mind having a look at my log file and let me know what I have left outside?
    Thank you
    [
    ============================================================
    Running W10UI v10.29
    ============================================================

    ============================================================
    Removing temporary extracted files...
    ============================================================


    ============================================================
    Extracting .cab files from .msu files...
    ============================================================

    1/4: windows10.0-kb5012170-x64_47b8ba3bb35c66bbd0631f5425805ccf1dafaf67.msu
    2/4: windows10.0-kb5020683-x64_119695f48aa3f28a5f68a3dff367957ef8b0f576.msu
    3/4: windows10.0-kb5027117-x64-ndp481_b15dec2fff51cb5296f7081b10038aeef36de151.msu
    4/4: Windows10.0-KB5027293-x64.msu

    ============================================================
    Extracting files from update cabinets (.cab)...
    *** This will require some disk space, please be patient ***
    ============================================================

    1/10: defender-dism-x64.cab
    2/10: windows10.0-kb5007401-x64_f1bf61d834bb8d9951c7efa23454643daae195b0.cab
    3/10: Windows10.0-KB5011048-x64.cab [NetFx]
    4/10: Windows10.0-KB5012170-x64_PSFX.cab [SecureBoot]
    5/10: Windows10.0-KB5020683-x64_PSFX.cab
    6/10: Windows10.0-KB5023847-x64.cab [Setup DU]
    7/10: Windows10.0-KB5026879-x64.cab [SSU]
    8/10: Windows10.0-KB5027117-x64-NDP481.cab [NetFx]
    9/10: Windows10.0-KB5027293-x64_PSFX.cab [LCU]
    10/10: windows10.0-kb5027389-x64.cab [Setup DU]

    ============================================================
    Mounting sources\install.wim - index 1/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Checking Updates...
    ============================================================

    ============================================================
    Installing servicing stack update...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.1288

    Processing 1 of 1 - Adding package Package_for_ServicingStack_3025~31bf3856ad364e35~amd64~~19041.3025.1.0
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Installing updates...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.1288

    Processing 1 of 1 - Adding package Package_for_KB5012170~31bf3856ad364e35~amd64~~19041.1880.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.1288

    Processing 1 of 4 - Adding package Package_for_KB5011048~31bf3856ad364e35~amd64~~10.0.9110.10
    [==========================100.0%==========================]
    Processing 2 of 4 - Adding package Package_for_KB5007401~31bf3856ad364e35~amd64~~19041.1378.1.1
    [==========================100.0%==========================]
    Processing 3 of 4 - Adding package Package_for_KB5020683~31bf3856ad364e35~amd64~~19041.2304.1.3
    [==========================100.0%==========================]
    Processing 4 of 4 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9166.2
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.1288

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.3154.1.15
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Resetting OS image base...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.3154

    [===== 10.0% ]
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.3154

    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding Defender update...
    ============================================================


    ============================================================
    Adding .NET Framework 3.5 feature...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.3154

    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Reinstalling cumulative update(s)...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19044.3154

    Processing 1 of 3 - Adding package Package_for_KB5007401~31bf3856ad364e35~amd64~~19041.1378.1.1
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9166.2
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.3154.1.15
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Updating winre.wim ...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.1

    Processing 1 of 1 - Adding package Package_for_ServicingStack_3025~31bf3856ad364e35~amd64~~19041.3025.1.0
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image File : H:\JUNI\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding updated winre.wim ...
    ============================================================

    1 file(s) copied.

    ============================================================
    Unmounting sources\install.wim - index 1/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image File : H:\JUNI\LTSC\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Rebuilding sources\install.wim ...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Mounting sources\boot.wim - index 1/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Checking Updates...
    ============================================================

    ============================================================
    Installing servicing stack update...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.1288

    Processing 1 of 1 - Adding package Package_for_ServicingStack_3025~31bf3856ad364e35~amd64~~19041.3025.1.0
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Installing updates...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.1288

    Processing 1 of 1 - Adding package Package_for_KB5020683~31bf3856ad364e35~amd64~~19041.2304.1.3
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.1288

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.3154.1.15
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Resetting WinPE image base...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.3154

    [===========================96.7%======================== ]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.3154

    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Unmounting sources\boot.wim - index 1/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image File : H:\JUNI\LTSC\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Mounting sources\boot.wim - index 2/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Checking Updates...
    ============================================================

    ============================================================
    Installing servicing stack update...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.1288

    Processing 1 of 1 - Adding package Package_for_ServicingStack_3025~31bf3856ad364e35~amd64~~19041.3025.1.0
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Installing updates...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.1288

    Processing 1 of 1 - Adding package Package_for_KB5020683~31bf3856ad364e35~amd64~~19041.2304.1.3
    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.1288

    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.3154.1.15
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Resetting WinPE image base...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.3154

    [==========================100.0%==========================]
    The operation completed successfully.

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image Version: 10.0.19041.3154

    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Unmounting sources\boot.wim - index 2/2
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Image File : H:\JUNI\LTSC\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Rebuilding sources\boot.wim ...
    ============================================================

    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844

    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.

    ============================================================
    Adding setup dynamic update(s)...
    ============================================================

    Windows10.0-KB5023847-x64.cab
    windows10.0-kb5027389-x64.cab

    ============================================================
    Removing temporary extracted files...
    ============================================================


    ============================================================
    Creating updated ISO file...
    ============================================================

    ISO Location:
    "H:\JUNI"

    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.


    Scanning source tree (500 files in 41 directories)
    Scanning source tree complete (904 files in 86 directories)

    Computing directory information complete

    Image file is 4985323520 bytes (before optimization)

    Writing 904 files in 86 directories to 19044.3154.230617-2127.21H2_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-GB.iso

    100% complete

    Storage optimization saved 25 files, 14182400 bytes (1% of image)

    After optimization, image file is 4973205504 bytes
    Space saved because of embedding, sparseness or optimization = 14182400

    Done.

    ============================================================
    Finished
    ============================================================


    Press 9 to exit.

    /SPOILER]
     
  10. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,691
    2,242
    60
    @qwesta
    ...
    2/10: windows10.0-kb5007401-x64_f1bf61d834bb8d9951c7efa23454643daae195b0.cab
    ...
    4/10: Windows10.0-KB5012170-x64_PSFX.cab [SecureBoot]
    ...

    KB5007401 isn't need, I think. I don't integrate it since a few months and it's not being offered on WU after installation.
    KB5012170 is supposed to be in the LCU now, afaik.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. f5aAh

    f5aAh MDL Novice

    Sep 14, 2015
    5
    27
    0
  12. TangoBravo00

    TangoBravo00 MDL Novice

    Aug 6, 2015
    14
    6
    0
    Hi guys,

    Forgive the out of date question.

    I am running an admittedly old (but reliable) version of W10 LTSC. Specifically:
    Version 1809 (OS Build 17763.1821).

    How do I upgrade this to the latest and greatest (1904x.3154 I think I've seen in my searches before this post) without having to do a complete reinstall.

    I've tried to find the answer but it gets real confusing real fast.

    Do I just install the new version or install a hotfix? I use (and LOVE) KMS_VL_ALL_AIO-49

    Thanks,

    TB

     
  13. meilenstein

    meilenstein MDL Novice

    Nov 22, 2015
    22
    13
    0
    Hi
    wondering how to do that (removing telemetry + offline user) with Rufus.
    Could you help ?
     
  14. slackdaddy

    slackdaddy MDL Novice

    Mar 9, 2010
    15
    11
    0
    Windows 10 IoT Enterprise LTSC 2021 / Windows 10 Enterprise LTSC 2021 Image Updates

    Effective as of the date of this post, to create an up-to-date image of Windows 10 IoT Enterprise LTSC 2021 / Windows 10 Enterprise LTSC 2021, integrate the following updates to the en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f.iso image using abbodi1406's amazing W10UI Windows NT 10.0 Updates Installer.

    Without NDP481 Base (Similar to original image)

    defender-dism-x64.cab
    windows10.0-kb5007401-x64_f1bf61d834bb8d9951c7efa23454643daae195b0.cab
    windows10.0-kb5023847-x64_0d515544d250e8d35de07eb37cf84c06284a04aa.cab
    windows10.0-kb5027122-x64-ndp48_b4a399e994cdaa75c9b9bd3771b8670c89e5f17b.msu
    windows10.0-kb5027215-x64_45971faad5d92b3fe36347a915dd7144b7f3f0c0.msu
    windows10.0-kb5027389-x64_8d1880d95f920fc8a4c2d96ca8d3b44f3e044581.cab

    With NDP481 Base Added

    defender-dism-x64.cab
    Windows10.0-KB5011048-x64.cab
    windows10.0-kb5023847-x64_0d515544d250e8d35de07eb37cf84c06284a04aa.cab
    windows10.0-kb5027117-x64-ndp481_b15dec2fff51cb5296f7081b10038aeef36de151.msu
    windows10.0-kb5027215-x64_45971faad5d92b3fe36347a915dd7144b7f3f0c0.msu
    windows10.0-kb5027389-x64_8d1880d95f920fc8a4c2d96ca8d3b44f3e044581.cab

    * Either resulting image will result in an installation that will be completely up-to-date with the exception of the Defender Updates (changing frequently), and the Malicious Software Removal Tool. I have thoroughly tested both methods.

    Edge Browser Removal

    On a separate note, years ago I obtained a Windows Enterprise LTSC 2021 early test release 19044.1147 which did NOT have the Edge Browser integrated - similar to LTSC 2019. I did a careful registry comparison, and noted the registry and file differences.

    To create a revised image of en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f.iso with the Edge Browser completely removed, please delete the following registry keys and files from either or both indexes of the original image:

    Remove These Registry Keys from the Offline Image

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppUserModelId\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MSEdgeHTM]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_44.19041.1266.0_neutral__8wekyb3d8bbwe]

    *[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\amd64_microsoft-windows-edgechromium_31bf3856ad364e35_none_df3ee7b2c5023fd1]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\amd64_microsoft-windows-m..osoftedge.appxsetup_31bf3856ad364e35_none_d0472dbbd37cfd67]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\amd64_microsoft-windows-microsoftedgebrowser_31bf3856ad364e35_none_cc4c2155158afa1d]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\amd64_microsoftedge-autologger_31bf3856ad364e35_none_dd39fb9187e61e2e]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MicrosoftEdgeUpdate.exe]

    [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate]

    [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge]

    [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update]

    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\edgeupdate]

    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\edgeupdatem]

    Remove This Directory from the Offline Image

    C:\Program files (x86)\Microsoft

    * After making these changes, adding all updates using W10UI.cmd and the "skipedge" option will result in an ISO which installs an up-to-date LTSC 2021 without the Edge Browser and no noticeable ill effects.

    I'll eventually be updating this post with links to ISO images that I created with the above listed process. They seem to work very well so far.
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,437
    95,277
    450
    Thabks for the mirror but no need on win 10 to use those win 11 22H2 rufus options at all, specially not on (IoT Enterprise 2021 LTSC).
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,437
    95,277
    450
  17. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,390
    11,618
    240
    From what I can see it gives a few options in the latest Rufus version to skip privacy options, create an offline user, skip automatic bitlocker and set region same as current system.
    None of the options mention disabling telemetry but here's old reliable group policy registry key script that disables telemetry data collection.
    Telemetry-Disable-Enable.cmd:
    Code:
    @echo off
    
    title Disable/Enable Windows Telemetry
    color 1f
    :Begin UAC check and Auto-Elevate Permissions
    :-------------------------------------
    REM  --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
    echo:
    echo   Requesting Administrative Privileges...
    echo   Press YES in UAC Prompt to Continue
    echo:
    
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        exit /B
    
    :gotAdmin
        if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
        pushd "%CD%"
        CD /D "%~dp0"
    :--------------------------------------
    
    :Check the key:
    (reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry"|find /i "0x0")>NUL 2>NUL
    if %errorlevel% NEQ 0 GOTO :KEYOFF
    
    :KEYON
    echo ============================================================
    echo Windows Telemetry currently disabled.
    echo Would you like to re-enable it? (Y/N)
    echo ============================================================
    echo.
    choice /c yn /n
    If %ERRORLEVEL% NEQ 1 GOTO :QUIT
    
    Echo Deleting Telemetry Registry key
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /F>NUL 2>NUL
    IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
    Echo.
    
    Echo Windows Telemetry enabled
    Echo.
    goto :QUIT
    
    
    :KEYOFF
    echo ============================================================
    echo Windows Telemetry is currently enabled.
    echo Would you like to disable it? (Y/N)
    echo ============================================================
    echo.
    choice /c yn /n
    If %ERRORLEVEL% NEQ 1 GOTO :QUIT
    
    Echo Changing Registry key
    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry">NUL 2>NUL
    if %errorlevel% equ 1 REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /F>NUL 2>NUL
    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /D 0 /T REG_DWORD /F>NUL 2>NUL
    IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
    Echo.
    
    Echo Windows Telemetry disabled
    Echo.
    goto :QUIT
    
    
    :QUIT
    echo ============================================================
    echo Press any key to exit...
    echo ============================================================
    pause>NUL
    goto :EOF
    
    :ERROR
    echo ============================================================
    echo The script ran into an unexpected error setting reg key.
    echo Press any key to exit...
    echo ============================================================
    pause>NUL
    goto :EOF