Windows Editions Reconstruction Project

Discussion in 'Windows 10' started by whatever127, Jan 10, 2020.

  1. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,705
    2,662
    120
    Perhaps if one wants a lean Windows. Installing core or starter is really pointless

    Just install Win server

    Remove the payload of the unused/unwanted features/roles with powershell

    Code:
    Get-WindowsOptionalFeature -Online | where { $_.State -match "Disabled" } |
    foreach { $_ = $_.FeatureName;
    DISM /Online /Disable-Feature /FeatureName:$_ /Remove
    }
    
    
    then use it as is or, optionally, switch it to any w10 version you prefer

    2 minutes of work and 3 lines of code to get the leanest and less resource hungry windows ever, with the added bonus of having at hand any of the server roles you may need, like LAN routing or backup just to mention a couple o them
     
  2. dummekuehe

    dummekuehe MDL Senior Member

    Jan 11, 2009
    495
    112
    10
    That's what I tried with 20348. Unfortunately I'm having trouble with drivers. My touchpad doesn't work at all. Doesn't even show up in the device manager.

    What do you mean with "switch it to any w10 version"?
    The regular way with Set-Edition?
     
  3. Single line useless bat script code :

    Code:
    Powershell -C "Get-WindowsOptionalFeature -Online | where { $_.State -match 'Disabled' } | foreach { $_ = $_.FeatureName; DISM /Online /Disable-Feature /FeatureName:$_ /Remove }"
    
    What will you achieve by doing this ? Whats the actual use of disabling already disabled optional features in windows via dism commandlets ?
     
  4. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,657
    13,675
    340
    a lean Windows
     
  5. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,657
    13,675
    340
  6. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,705
    2,662
    120
    #5747 acer-5100, Dec 1, 2021
    Last edited: Dec 1, 2021
    Possibly your driver is artificial limited to client only SKUs so Switch to Sever from Client and 99% it will work

    More or less...

    add client SKU(s) certificate folder(s) under tokens

    replace the branding folder with a client's one

    do

    slmgr /rilc

    slmgr /ipk <client serial>

    reboot

    that's all
     
  7. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,705
    2,662
    120
    #5748 acer-5100, Dec 1, 2021
    Last edited: Dec 1, 2021
    Be sure the brain is fully turned on before calling useless other's work

    In my dictionary "removing" and "disabling" have a different meaning, MS uses the same dictionary. ;)

    What you achieve is possibly 2GB of spared space in the installed system and/or say 800MB smaller WIM image
     
  8. xinso

    xinso MDL Guru

    Mar 5, 2009
    12,657
    13,675
    340
    #5749 xinso, Dec 1, 2021
    Last edited: Dec 1, 2021
    Q: Is it possible to make 19041.1 with updates accepted by sfc /scannow online?
     
  9. only achieving disk space nothing else or if it refers to clearing cache of already disabled features with adjacent capabilities. Pl be sure dear friend ;)
    hence we can do so by removing capabilities of same optional features we disable on current installed os . even i havent stated your work to be useless rather saying the script code to be.
    its ok . be happy always & stay blessed.
     
  10. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,705
    2,662
    120
    you do what the command states. the payload is removed, just like .NET 3.5

    So you gain space like you would do using MSMG (a lot of space, given in servers the unused optional features are so many. Even the defender cancer is optional)

    But unlike the above you can always install the removed features using the server GUI after specifying the path of the untouched install media
     
  11. huynhlam2

    huynhlam2 MDL Junior Member

    Nov 8, 2020
    73
    161
    0
  12. hcvn

    hcvn MDL Novice

    Aug 11, 2017
    49
    23
    0
  13. huynhlam2

    huynhlam2 MDL Junior Member

    Nov 8, 2020
    73
    161
    0
    Yes! I'm think so!
     
  14. Ok Ok why becoming so aggressive for it . Be Cool man :D Gift :p

    Code:
    echo --- Remove OneDrive
    Powershell -C "Set-ItemProperty -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*OneDrive*' -Name Visibility -Value 1 -Force -Verbose"
    Powershell -C "Remove-Item -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*OneDrive*' -Include *Owner* -Recurse -Force -Verbose"
    Powershell -C "Get-ChildItem -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*OneDrive*' -Name | ForEach-Object {DISM /Online /Remove-Package /PackageName:$_ /NoRestart}"
    echo.
    echo --- Remove Defender
    Powershell -C "Set-ItemProperty -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*Defender*' -Name Visibility -Value 1 -Force -Verbose"
    Powershell -C "Remove-Item -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*Defender*' -Include *Owner* -Recurse -Force -Verbose"
    Powershell -C "Get-ChildItem -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*Defender*' -Name | ForEach-Object {DISM /Online /Remove-Package /PackageName:$_ /NoRestart}"
    
     
  15. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,705
    2,662
    120
    Aggressive o_O?

    i politely explained what the command does, as per your request.
     
  16. Ok friend my Mindset is of different kind goes deep inside some words to investigate it in different different scenarios ie assumptions , well concluded , very well decided etc etc . forget it . Enjoy this Special Month .
     
  17. adric

    adric MDL Expert

    Jul 30, 2009
    1,250
    1,324
    60
    And that procedure is where?
     
  18. Ace2

    Ace2 MDL Expert

    Oct 10, 2014
    1,410
    1,188
    60
    if there is one, it has not been shared.;)