[DISCUSSION] NT10 OS

Discussion in 'Scripting' started by (\_/)^(\_/), Dec 1, 2021.

?

Preference For OS Tweaking

Poll closed Friday at 23:03.
  1. Offline Tweaking z Best

    10 vote(s)
    22.2%
  2. Current Installed OS Tweaking z Best

    7 vote(s)
    15.6%
  3. Both Current & Offline Tweaking z Best

    20 vote(s)
    44.4%
  4. Dont Screw Installation Suggestion by Enthousiast

    8 vote(s)
    17.8%
  1. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #1 (\_/)^(\_/), Dec 1, 2021
    Last edited: Jan 5, 2022
    MDL Discussion Thread for NT10 OS​
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #2 (\_/)^(\_/), Dec 1, 2021
    Last edited: Jan 6, 2022
    (OP)
    Online NT10 OS Tweaking
    Which Current Installed OS Tweaking Tool is Best & Why
    if i Left including any other good tool pl suggest so that it can also be included into list.
    I Use Only This PrivateWin10 by David these days Which Itself is Great
    1. AutoSettingsPS
    2. St1ckys
    3. WindowsPrivacyDashboard
    4. Windows10Privacy
    5. PrivacySexy
    6. DebloatWin10
    7. Blackviper
    8. BlackBird
    9. WinAeroTweaker
    10. RedButton
    11. Tron
    12. PolicyPlus
    13. ConfigureDefender
    14. DoNotSpy
    15. Win10DebloaterGUI
    16. Belim-Tools
    17. Mach2
    18. ViveTool
    19. O&OShutUP++
    20. UWT4
    21. farags Sophia Script
    22. Chris Titus NT10 Script 22a. Chris Titus Script Usage Video
    23. Win7-11 Tweaking Script by The.Rock MDL
    24. Win10BloatRemover by Fs00
    25. Win10SmartDebloat
    26. WarHawk Win10Debloater
    27. WinTweakers Toolbox
    28. Pratyakshm WinRice
    29. WinSlap
    30. Optimizer
    31. Madbomb122 Win10 Script GUI
    32. Disassembler0 Script Tool
    33. OOAPPBUSTER Updated

    Thanks to Drew84 & Anon friend to add Some More in List too.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #3 (\_/)^(\_/), Dec 1, 2021
    Last edited: Dec 6, 2021
    (OP)
    Remove Any OS Package from Current Installed OS :
    Code:
    Powershell -C "Set-ItemProperty -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*Package-Name*' -Name Visibility -Value 1 -Force -Verbose"
    Powershell -C "Remove-Item -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*Package-Name*' -Include *Owner* -Recurse -Force -Verbose"
    Powershell -C "Get-ChildItem -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\*Package-Name*' -Name | ForEach-Object {DISM /Online /Remove-Package /PackageName:$_ /NoRestart}"
    
    Just Change *Package-Name* with the Package you want to remove That is For Example *Defender* Will remove Miscrosoft Windows Defender Packages Permanently from OS.
    Always Run with Trusted Installer Rights
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #4 (\_/)^(\_/), Dec 1, 2021
    Last edited: Jan 11, 2022 at 17:28
    (OP)
    Offline NT10 OS Tweaking
    1. Download NT10 Base iso via UUPDump Suppose For latest as Example 19041.1 Without Updates
    1a . Theres a reason for Doing this as you can see nowa days if we download always latest MSDN images then so many SSU are already installed without any reason. etc etc. Cant Share whole process as per my scenario why i dont suggest using Latest MSDN images rather suggest base ISo then integerate Updates using Dism Commandlets via W1oUI.

    2. Use W10 UI by Abbodi1406 to Integerate Updates always to same ISO Whenever Needed.
    2a. Best way to Create latest OS image on Second Wednesday as Second Tuesday M$ Released there Updates.
    2b. Updates for same 19041.1 Can be Downloaded via M$ Catalog Every Month Second Wednesday ie via :
    19041 x64: https://www.catalog.update.microsoft.com/Search.aspx?q=2022-01 Windows 10 2004 x64
    19041 x86: https://www.catalog.update.microsoft.com/Search.aspx?q=2022-01 Windows 10 2004 x86
    19041 arm64: https://www.catalog.update.microsoft.com/Search.aspx?q=2022-01 Windows 10 2004 arm64
    All the same Just any EP will Update 19041 to 19042, 43,44
    Just change the Month & Year Every Time ie 2022-01 for Jan 2022 Updates
    2c. Enablement Packages [EP] in short can be Downloaded via UUP dump Always.

    3. Use MSMG Toolkit only to Remove Packages Using ToolkitHelper Mode predefined Lists by Dev
    3a. Best way to remove Packages from offline Image.

    4. Dont Enable .net 3.5 Windows Optional Feature Till Now using Any of Previously Suggested Points.
    4a. Theres a Point Why i Dont suggest to enable .net3.5 in previous steps so as to always get clean n lean Image in Final result.

    5. Script to Tweak Nt10 OS in Offline Mode Single Wim Index Servicing including Abbodi W10UI Params Plus MSMG toolkit Latest Plus my Script in One Single Pack so that in Final we get the latest best tweaked ISO.
    5a. Download Whole Offline ISO Updating Plus Tweaking pack

    6. After Downloading Whole Offline ISO Updating Plus Tweaking pack :
    6a. Extract NT10 ISO to DVD directory of Your Project Folder.
    6b. Copy paste Downloaded Updates to Updates Directory & Execute 1-Updater it will Update your Offline Image to latest i dont use WinRE hence set WinRE to 0 in updater.
    6c. Dont Worry it will not result in Updated ISO but updated ISO Directory is already there as "DVD" Now updater Work is Finished press key as suggested by it in end to exit it.

    7. Download predefined Packages list for MSMG Toolkit via MSMG Dev Mega account or if my Uploaded toolkit becomes old then download whole new Toolkit & extract its Contents Bin to same Bin directory & Toolkit to Root of Project overwriting the previous one.
    7a. I have not included any predefined packages list to be removed via Toolkithelper so do as per your needs & edit only RemovePkgsList.txt file inside BIN\Lists\ to the latest.
    7b. Execute 2-Start then go to 1 select 1 to select DVD as source dont select Boot & WinRE then select inastall image index you want to be serviced via Toolkit.
    7c. Go to 3 : Remove & select toolkithelper method then run pressing Y as many times it asked you to press. after packages are removed according to your needs go to 5: apply trim your image & exit toolkit.
    7d. dont worry your ISO Contents are still Inside DVD directory to be Serviced Again via Last tweaker batch.

    8. Here comes last step to service Offline Image 3-Tweaker execute it select the image index you want to be serviced or if its already a single index image then also you have to write its index number & press enter.
    8a When first Screen Gui Comes to remove Metro Apps ie Windows apps select all or as per your needs then press ok.
    8b When second Screen Pwsh Gui Comes Select only those Optional features you want to disable then Press ok.
    8c. When Third Screen Pwsh Gui comes select all Win capabilities you want to remove & press OK
    8d . here it will Enable .net3.5 to your install image using sxs directory present there in your DVD / Sources directory.
    Final will Result in Offline Fully tweaked Nt10 OS ISO Image.

    Continued to Online ISO tweaking Script in next comment ======>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,098
    1,686
    60
    Note on the presented List (2nd Post)

    Personally would not have 6 or 15 listed, reasons:

    1. Essentially, has not been updated for 17 months
    2. The number of unresolved issues (200+)

    The script itself has been used as a basis for (a former admirer) Chris Titus's win10script
    with many of the issues having been resolved (script improved + with some additional useful stuff), Check out the Video Here

    Chris Titus himself goes on to recommend (the not listed) @farag 's own Sophia Script, often updated and currently no unresolved issues
    ..... nice going though
     
  6. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #6 (\_/)^(\_/), Dec 1, 2021
    Last edited: Dec 4, 2021
    (OP)
    Now After You have Installed NT10 OS using the Final Tweaked ISO resulted via going through all those points: Here Comes how to tweak in last n final Current Installed OS to the Best privacy level.

    Code:
    @echo off
    title Windows AIO Tweaker
    color 17
    MODE CON LINES=32765
    SETLOCAL ENABLEDELAYEDEXPANSION
    cd /d %~dp0
    echo ======================================================
    echo -------------- Ensure Admin Privileges ---------------
    echo ======================================================
    "%SYSTEMROOT%\System32\cacls.exe" "%SYSTEMROOT%\System32\config\system" >nul 2>&1
    if '%errorlevel%' NEQ '0' (    echo Requesting administrative privileges...    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"
    del "%temp%\getadmin.vbs"
    exit /B
    :gotAdmin
    echo:             Got Administrator Privilege
    echo ======================================================
    echo ======================================================
    echo ---------------- SET SYSTEM VARIABLES ----------------
    echo ======================================================
    set sls=SoftwareLicensingService
    for /f "tokens=2,3 delims=.=" %%A IN ('"wmic path %sls% get version /format:list"') do set "build=%%A.%%B"
    for /f "tokens=2* delims= " %%a in ('reg query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v "PROCESSOR_ARCHITECTURE"') do (
        if "%%b" == "AMD64" set vera=x64
        if "%%b" == "x86" set vera=x86
    )
    for /f "tokens=3* delims= " %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" ^| findstr ProductName') do set vername=%%i %%j
    for /f "tokens=3* delims= " %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" ^| findstr /i "CurrentBuild"') do set "edition=%%i"
    for /f "skip=1 tokens=1 delims=: " %%a in ('"wmic partition where (BootPartition='True' and DiskIndex='0') get Type"') do (
        set checklayout=%%a
        if "!checklayout!"=="GPT" set "layout=GPT"
        if "!checklayout!"=="Installable" set "layout=MBR"
    )
    echo:                         OK
    echo ======================================================
    echo ======================================================
    echo ------------- Check System Prerequisites -------------
    echo ======================================================
    echo: Your Operating System is: %vername% %edition% %vera%
    IF %build% EQU 5.1 goto WinXP
    IF %build% EQU 6.0 goto WinVista
    IF %build% EQU 6.1 goto Win7
    IF %build% EQU 6.2 goto Win8
    IF %build% EQU 6.3 goto Win81
    IF %build% EQU 10.0 goto Win10
    Goto EOF
    echo ======================================================
    
    :Win10
    echo ======================================================
    echo -------------- Disable Windows Features --------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable Windows Optional Features' -ForegroundColor Green"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-WindowsOptionalFeature -Online | Where-Object {$_.State -eq 'Enabled' } | OGV -PassThru -Title 'Select Windows Optional Features to Disable' | Disable-WindowsOptionalFeature -Online -NoRestart -Verbose"
    echo ======================================================
    echo.
    echo ======================================================
    echo ------------- Remove Windows Capabilities ------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Remove Windows Capabilities' -ForegroundColor Green"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-WindowsCapability -Online | Where-Object {$_.State -eq 'Installed' } | OGV -PassThru -Title 'Select Windows Capabilities to Remove' | Remove-WindowsCapability -Online -Verbose"
    echo ======================================================
    echo.
    echo ======================================================
    echo ------------------ Remove MetroApps ------------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Remove Windows Apps' -ForegroundColor Green"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-AppXProvisionedPackage -Online | OGV -PassThru -Title 'Remove Windows Apps' | Remove-AppXProvisionedPackage -Online -EA SilentlyContinue -Verbose"
    echo ======================================================
    echo.
    echo ======================================================
    echo ------------------ Remove SystemApps -----------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Remove System Apps' -ForegroundColor Green"
    SetACL -ot "reg" -on "HKLM\SYSTEM\CurrentControlSet\Services\StateRepository" -actn setowner -ownr "n:Administrators"
    SetACL -ot "reg" -on "HKLM\SYSTEM\CurrentControlSet\Services\StateRepository" -actn ace -ace "n:Administrators;p:full"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\StateRepository' 'Start' 4 -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Stop-Service -Name StateRepository -Force -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-Service -Name StateRepository -Verbose"
    SetACL -ot "file" -on "%ProgramFiles%\WindowsApps" -actn setowner -ownr "n:Administrators"
    SetACL -ot "file" -on "%ProgramFiles%\WindowsApps" -actn ace -ace "n:Administrators;p:full"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository" -actn setowner -ownr "n:Administrators"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository" -actn ace -ace "n:Administrators;p:full"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" -actn setowner -ownr "n:Administrators"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" -actn ace -ace "n:Administrators;p:full"
    IF EXIST "%ProgramData%\Microsoft\Windows\AppRepository\PackageRepository.edb" del /f /s /q /a "%ProgramData%\Microsoft\Windows\AppRepository\PackageRepository.edb"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\StateRepository' 'Start' 2 -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Start-Service -Name StateRepository -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-Service -Name StateRepository -Verbose"
    TASKLIST /svc /fi "services eq StateRepository"
    TASKKILL /F /FI "services eq StateRepository" /T
    SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "DROP TRIGGER IF EXISTS TRG_AFTER_UPDATE_Package_SRJournal;"
    SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "DROP TRIGGER IF EXISTS TRG_AFTERUPDATE_Package_SRJournal;"
    SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "UPDATE Package SET IsInBox=0 WHERE IsInBox=1;"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-AppxPackage -AllUsers | OGV -PassThru -Title 'Remove System Apps' | Remove-AppxPackage -AllUsers -EA SilentlyContinue -Verbose"
    echo ======================================================
    echo.
    echo ======================================================
    echo --- Recheck SystemApps Removal [IF Some Apps Are Left Before This Time They Will be Removed]
    SetACL -ot "reg" -on "HKLM\SYSTEM\CurrentControlSet\Services\StateRepository" -actn setowner -ownr "n:Administrators"
    SetACL -ot "reg" -on "HKLM\SYSTEM\CurrentControlSet\Services\StateRepository" -actn ace -ace "n:Administrators;p:full"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\StateRepository' 'Start' 4 -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Stop-Service -Name StateRepository -Force -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-Service -Name StateRepository -Verbose"
    SetACL -ot "file" -on "%ProgramFiles%\WindowsApps" -actn setowner -ownr "n:Administrators"
    SetACL -ot "file" -on "%ProgramFiles%\WindowsApps" -actn ace -ace "n:Administrators;p:full"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository" -actn setowner -ownr "n:Administrators"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository" -actn ace -ace "n:Administrators;p:full"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" -actn setowner -ownr "n:Administrators"
    SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" -actn ace -ace "n:Administrators;p:full"
    IF EXIST "%ProgramData%\Microsoft\Windows\AppRepository\PackageRepository.edb" del /f /s /q /a "%ProgramData%\Microsoft\Windows\AppRepository\PackageRepository.edb"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\StateRepository' 'Start' 2 -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Start-Service -Name StateRepository -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-Service -Name StateRepository -Verbose"
    TASKLIST /svc /fi "services eq StateRepository"
    TASKKILL /F /FI "services eq StateRepository" /T
    SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "DROP TRIGGER IF EXISTS TRG_AFTER_UPDATE_Package_SRJournal;"
    SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "DROP TRIGGER IF EXISTS TRG_AFTERUPDATE_Package_SRJournal;"
    SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "UPDATE Package SET IsInBox=0 WHERE IsInBox=1;"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-AppxPackage -AllUsers | OGV -PassThru -Title 'Remove System Apps' | Remove-AppxPackage -AllUsers -EA SilentlyContinue -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-ChildItem -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications' | OGV -PassThru -Title 'Remove System Apps Registry Leftovers' | Remove-Item -Force -Confirm:$False -Verbose"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-AppxPackage -AllUser | Format-List -Property PackageFullName,PackageUserInformation,InstallLocation,NonRemovable"
    echo ======================================================
    
    Here We are again cross checking which Features to be Disabled on Installed OS plus Capabilities too to be Removed Plus VClibs Metro app which comes again after installation.
    Very Important point in SystemApps Remnoval Code : we must be sure Sqlite3 & SetACL executables to be present next to this script & must not remove most important inbox apps that are : Immersivecontrolpanel & Shellexperiencehost rest all can be removed but but for startmenuexpereincehost we must be sure that an alternative is already installed or else will result in startmenu error. Alternative i could suggest is StartisBack++ doing great at my side.

    To Be Continued :=======>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    Next Very Simple steps :

    Code:
    echo ======================================================
    echo ------ Add This PC And Control Panel to Desktop ------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Add This PC And Control Panel to Desktop' -ForegroundColor Green"
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t reg_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t reg_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t reg_DWORD /d "0" /f
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t reg_DWORD /d "0" /f
    echo ======================================================
    echo.
    echo ======================================================
    echo ---------- Set User TEMP to Windows TEMP -------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Set User TEMP to Windows TEMP' -ForegroundColor Green"
    reg add "HKCU\Environment" /v "TEMP" /t reg_SZ /d "%SystemRoot%\Temp" /f
    reg add "HKCU\Environment" /v "TMP" /t reg_SZ /d "%SystemRoot%\Temp" /f
    echo ======================================================
    echo.
    echo ======================================================
    echo ----------- Disable Administrative shares ------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable Administrative shares' -ForegroundColor Green"
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "AutoShareWks" /t reg_DWORD /d 0 /f
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "AutoShareServer" /t reg_DWORD /d 0 /f
    net share * /delete
    echo ======================================================
    echo.
    echo ======================================================
    echo ----- Enable Reset Base in Dism Component Store ------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Enabling Reset Base in Dism Component Store' -ForegroundColor Green"
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t "reg_DWORD" /d 0 /f
    echo ======================================================
    echo.
    echo ======================================================
    echo ----------- Disable Reserved Storage -----------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable Reserved Storage' -ForegroundColor Green"
    DISM /online /Set-ReservedStorageState /State:Disabled
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager" /v "MiscPolicyInfo" /t reg_DWORD /d 2 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager" /v "ShippedWithReserves" /t reg_DWORD /d 0 /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager" /v "PassedPolicy" /t reg_DWORD /d 0 /f
    echo ======================================================
    echo.
    echo ======================================================
    echo ------------ Set Mobo Company and Model --------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Set Mobo Company and Model' -ForegroundColor Green"
    FOR /F "tokens=3* delims= " %%i in ('reg query HKLM\HARDWARE\DESCRIPTION\System\BIOS /v BaseBoardManufacturer') DO (SET BaseBoardManufacturer=%%i %%j)
    FOR /F "tokens=3* delims= " %%i in ('reg query HKLM\HARDWARE\DESCRIPTION\System\BIOS /v BaseBoardProduct') DO (SET BaseBoardProduct=%%i %%j)
    ECHO Manufacturer="%BaseBoardManufacturer%"
    ECHO Product="%BaseBoardProduct%"
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /t reg_SZ /v Manufacturer /d "%BaseBoardManufacturer%" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /t reg_SZ /v Model /d "%BaseBoardProduct%" /f
    echo ======================================================
    echo.
    echo ======================================================
    echo ------------ Remove This PC Libraries ----------------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Remove This PC Libraries' -ForegroundColor Green"
    REM ; Desktop
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    REM ; Documents
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    REM ; Downloads
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    REM ; Music
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    REM ; Pictures
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    REM ; Videos
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    REM ; 3D Objects
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" /v "ThisPCPolicy" /t reg_SZ /d "Hide" /f
    echo ======================================================
    
    Run Without any hassle.
    To Be Continued :=======>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #8 (\_/)^(\_/), Dec 1, 2021
    Last edited: Dec 1, 2021
    (OP)
    Code:
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Apply Windows Privacy Dashboard' -ForegroundColor Green"
    START /WAIT WPD.exe -defender "off" -wfp "off" -privacy " CEIPEnable  DisableCustomerImprovementProgram  CEIP  AllowCortana  AllowSearchToUseLocation  WindowsErrorReporting  DisableUAR  DisableInventory  AllowTelemetry  RestrictImplicitCollection  AllowInputPersonalization  AllowLinguisticDataCollection  ScenarioExecutionEnabled  DisableQueryRemoteServer  AdvertisingInfo  DisableContentFileUpdates  DisableWindowsConsumerFeatures  DiagTrack  dhscs  dmwappushservice  Consolidator  MCA  DeviceCensus  PublishUserActivities  UploadUserActivities  EnableActivityFeed  AllowClipboardHistory  AllowCrossDeviceClipboard  AllowDeviceNameInTelemetry  DisableSettingSync  DisableFileSyncNGSC  DisableAntiSpyware  EnableSmartScreen  LetAppsAccessAccountInfo  LetAppsAccessCalendar  LetAppsAccessCallHistory  LetAppsAccessCamera  LetAppsAccessContacts  LetAppsAccessEmail  LetAppsAccessGazeInput  LetAppsAccessLocation  LetAppsAccessMessaging  LetAppsAccessMicrophone  LetAppsAccessMotion  LetAppsAccessNotifications  LetAppsAccessPhone  LetAppsAccessRadios  LetAppsAccessTasks  LetAppsAccessTrustedDevices  LetAppsGetDiagnosticInfo  LetAppsRunInBackground  LetAppsSyncWithDevices  LetAppsActivateWithVoice  LetAppsActivateWithVoiceAboveLock  LetAppsAccessBackgroundSpatialPerception  CDPUserSvc  PimIndexMaintenanceSvc  UnistoreSvc  UserDataSvc  MessagingService  WpnUserService  ShowSyncProviderNotifications  TailoredExperiencesWithDiagnosticDataEnabled  StartTrackProgs  HttpAcceptLanguageOptOut  WUGP  WaaSMedicSvc  ScheduledStart  ScheduleScan  ScheduleWork " -revert " wuauserv  UsoSvc  bTelemetry bExtra bUpdate" -includeAdv -nosplash -nowarnOS -noMOcheck -noappx -nofw -pro -security -close
    echo.
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Apply OO Shutup' -ForegroundColor Green"
    START /WAIT OOSU10.exe OOSU10.cfg /quiet
    echo.
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable Background Apps Execution' -ForegroundColor Green"
    for /F "tokens=* skip=1" %%n in ('wmic useraccount where "name='%username%'" get sid ^| findstr "."') do (set SID=%%n)
    reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserARSO\%SID%" /v OptOut /t reg_DWORD /d 1 /f
    echo.
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Remove DefaultUser0' -ForegroundColor Green"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Remove-LocalUser -Name 'DefaultUser0' -EA Ignore -Verbose"
    echo.
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Clear Windows Product Key' -ForegroundColor Green"
    %SystemRoot%\System32\cscript //Nologo "%SystemRoot%\System32\slmgr.vbs" /cpky
    %SystemRoot%\System32\cscript //Nologo "%SystemRoot%\System32\slmgr.vbs" /dli
    echo ======================================================
    
    Here be Sure to Put Windows privacy dashboard next to script Plus OOShutup with its predefined CFG file rest all is easy peasy.
    To Be Continued :=======>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #9 (\_/)^(\_/), Dec 1, 2021
    Last edited: Dec 1, 2021
    (OP)
    Code:
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable Auditpolicies' -ForegroundColor Green"
    %SystemRoot%\System32\Auditpol /remove /allusers
    %SystemRoot%\System32\Auditpol /clear /y
    %SystemRoot%\System32\Auditpol /set /category:* /Success:Disable /failure:Disable
    
    echo.
    
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable File Transfer to Recycle Bin' -ForegroundColor Green"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\Volume'; Get-ChildItem $key | foreach { Set-ItemProperty -Path \"$key\$($_.pschildname)\" -Name MaxCapacity -Value 1 -EA SilentlyContinue -Verbose }"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\Volume'; Get-ChildItem $key | foreach { Set-ItemProperty -Path \"$key\$($_.pschildname)\" -Name NukeOnDelete -Value 1 -EA SilentlyContinue -Verbose }"
    
    echo.
    
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Remove All Routiong Tables' -ForegroundColor Green"
    %systemroot%\System32\route -f
    %systemroot%\System32\route print
    
    echo.
    
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Remove All Scheduled Tasks' -ForegroundColor Green"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-Scheduledtask | Unregister-ScheduledTask -Confirm:$false -EA SilentlyContinue -Verbose"
    
    echo.
    
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable WMI Autologgers' -ForegroundColor Green -EA SilentlyContinue -Verbose"
    reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\Autologger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Get-AutologgerConfig | Set-AutologgerConfig -Start 0 -InitStatus 0 -Confirm:$false -EA Ignore -Verbose"
    
    echo.
    
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable All Windows Event Logs' -ForegroundColor Green"
    for /F "tokens=*" %%1 in ('wevtutil.exe el') DO wevtutil.exe cl "%%1"
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "$key = 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels'; Get-ChildItem $key | foreach { Set-ItemProperty -Path \"$key\$($_.pschildname)\" -Name Enabled -Value 0 -EA SilentlyContinue -Verbose }"
    
    echo.
    
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Disable Windows Recovery Partition' -ForegroundColor Green"
    REAGENTC.EXE /disable
    
    echo ======================================================
    
    Clear Logs:
    Code:
    @echo off
    title ClearLogs
    color 17
    cd /d %~dp0
    echo ======================================================
    echo -------------- Ensure Admin Privileges ---------------
    echo ======================================================
    "%SYSTEMROOT%\System32\cacls.exe" "%SYSTEMROOT%\System32\config\system" >nul 2>&1
    if '%errorlevel%' NEQ '0' (    echo Requesting administrative privileges...    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"
    del "%temp%\getadmin.vbs"
    exit /B
    :gotAdmin
    echo:             Got Administrator Privilege
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Removing Logs in Windows No Output' -EA SilentlyContinue -ForegroundColor Green -Verbose"
    FORFILES /P "%Windir%" /S /M *.log /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%Windir%" /S /M *.etl /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%Windir%" /S /M Logs /C "CMD /C IF @ISDIR==TRUE RD /S /Q @FILE">NUL  2>NUL
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Removing Logs in SystemDrive No Output' -EA SilentlyContinue -ForegroundColor Green -Verbose"
    FORFILES /P "%SystemDrive%" /S /M *.log /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%SystemDrive%" /S /M *.etl /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%SystemDrive%" /S /M Logs /C "CMD /C IF @ISDIR==TRUE RD /S /Q @FILE">NUL  2>NUL
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Removing Logs in SystemDrive-Users No Output' -EA SilentlyContinue -ForegroundColor Green -Verbose"
    FORFILES /P "%SystemDrive%\Users" /S /M *.log /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%SystemDrive%\Users" /S /M *.etl /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Removing Logs in ProgramData No Output' -EA SilentlyContinue -ForegroundColor Green -Verbose"
    FORFILES /P "%ProgramData%" /S /M *.log /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%ProgramData%" /S /M *.etl /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%ProgramData%" /S /M Logs /C "CMD /C IF @ISDIR==TRUE RD /S /Q @FILE">NUL  2>NUL
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Removing Logs in ProgramFiles No Output' -EA SilentlyContinue -ForegroundColor Green -Verbose"
    FORFILES /P "%ProgramFiles%" /S /M *.log /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%ProgramFiles%" /S /M *.etl /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%ProgramFiles%" /S /M Logs /C "CMD /C IF @ISDIR==TRUE RD /S /Q @FILE">NUL  2>NUL
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Removing Logs in ProgramFiles(x86) No Output' -EA SilentlyContinue -ForegroundColor Green -Verbose"
    FORFILES /P "%ProgramFiles(x86)%" /S /M *.log /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%ProgramFiles(x86)%" /S /M *.etl /C "CMD /C IF @ISDIR==FALSE DEL /F /Q @FILE">NUL  2>NUL
    FORFILES /P "%ProgramFiles(x86)%" /S /M Logs /C "CMD /C IF @ISDIR==TRUE RD /S /Q @FILE">NUL  2>NUL
    echo ======================================================
    
    The End
    Wont Share my Extra Registry Edits as Mostly will Again say that something break there OS .
    Using these steps nothing is break down & will result in full final working OS with good tele home to M$. as my extra Registry Edits does the Job to prevent OS call M$ in any way :D Happy 1st December 2021
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Dark Monkey

    Dark Monkey MDL Addicted

    Feb 2, 2011
    677
    830
    30
    this one. what is good for ?
    Code:
    echo ======================================================
    echo ----- Enable Reset Base in Dism Component Store ------
    echo ======================================================
    Powershell -EP Bypass -MTA -NOL -NONI -NOP -C "Write-Host 'Enabling Reset Base in Dism Component Store' -ForegroundColor Green"
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t "reg_DWORD" /d 0 /f
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    It Will Enable Reset Base in StartComponentCleanup Dism Commandlet of your OS winSXS Backups Directory to Reset the Base to the latest one Present.
    it is not present there by default so we have to enable it with this reg tweak.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,098
    1,686
    60
    @(\_/)^(\_/) will you be confining this thread to NT10?
    ... noticed a few WMIC calls which as you know no longer exists in later editions of the OS (11)
     
  13. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    Done
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    What say friends Shall i Again Start sharing my OEM Pack only on MDL :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Dark Monkey

    Dark Monkey MDL Addicted

    Feb 2, 2011
    677
    830
    30
    yep boss !
    will be very useful for me.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. alexbokor40

    alexbokor40 MDL Novice

    Mar 19, 2018
    10
    1
    0
    please a link for 19041.1.
    thx.
     
  17. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    #17 (\_/)^(\_/), Dec 6, 2021
    Last edited: Dec 18, 2021
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. (\_/)^(\_/)

    (\_/)^(\_/) MDL Member

    May 31, 2020
    1,742
    1,478
    60
    Boss Lets See how many more friends want it via there likes or comments to same post for publishing Mid Dec 2021 $OEM$ Pack With 0% Telemetry where i have done tweak to dnsapi.dll both system32 & syswow64 for 1904x.xxx builds & replaced it with TI rights on installation. Also theres no more need for shellexperiencehost as i found a alternative for it . Left is only Immersivecontrol inbox app to be kept rest all will be removed via OEM pack & alternate for startmenuexperiencehost ie startisback++ is also auto installed via privacy script from now onwards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. alexbokor40

    alexbokor40 MDL Novice

    Mar 19, 2018
    10
    1
    0
  20. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    38,738
    67,781
    450
    #20 Enthousiast, Dec 6, 2021
    Last edited: Dec 6, 2021
    For this download to be 19041.1 he needs to disable updates integration in convertconfig.ini (AddUpdates =0) or delete the updates from the UUPs folder before the script has finished converting the UUP fileset to install.wim (best to edit the convertconfig.ini file at forehand.

    Or not download them at all.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...