Windows 11

Today i added these commands to setupcomplete. it disabled microsoftteams and microsoftedge (edge only! not webview since we need it) installaton and blocks future installations...

system is clean on online install, no tray icons, no startuptasks to update or install them.
Animation.gif

I reached my goal of clean stable fast windows 11. with the preset i shared, +replacing empty start.bin and these commands. its adware free. the only thing missing is contextmenu editor. but atleast i added my own menu
Code:
:: Block Teams
mkdir "%localappdata%\Microsoft\Teams" >NUL 2>&1
mkdir "C:\Program Files\WindowsApps\MicrosoftTeams_21253.510.996.1465_x64__8wekyb3d8bbwe" >NUL 2>&1

icacls "%localappdata%\Microsoft\Teams" /inheritance:r >NUL 2>&1
icacls "C:\Program Files\WindowsApps\MicrosoftTeams_21253.510.996.1465_x64__8wekyb3d8bbwe" /inheritance:r >NUL 2>&1

:: Block Edge
@RD /S /Q "C:\Program Files\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "C:\Program Files\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "C:\Program Files\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "C:\ProgramData\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "C:\ProgramData\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "C:\ProgramData\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "%localappdata%\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "%localappdata%\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "%localappdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "%appdata%\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "%appdata%\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "%appdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\Temp\*" >NUL 2>&1
del /f /q "C:\Program Files\Microsoft\Edge\*" >NUL 2>&1
del /f /q "C:\Program Files\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "C:\Program Files\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\Edge\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "C:\ProgramData\Microsoft\Edge\*" >NUL 2>&1
del /f /q "C:\ProgramData\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "C:\ProgramData\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "%localappdata%\Microsoft\Edge\*" >NUL 2>&1
del /f /q "%localappdata%\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "%localappdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "%appdata%\Microsoft\Edge\*" >NUL 2>&1
del /f /q "%appdata%\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "%appdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\Temp\*" >NUL 2>&1

mkdir "C:\Program Files\Microsoft\Edge" >NUL 2>&1
mkdir "C:\Program Files\Microsoft\EdgeCore" >NUL 2>&1
mkdir "C:\Program Files\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "C:\Program Files (x86)\Microsoft\Edge" >NUL 2>&1
mkdir "C:\Program Files (x86)\Microsoft\EdgeCore" >NUL 2>&1
mkdir "C:\Program Files (x86)\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "C:\ProgramData\Microsoft\Edge" >NUL 2>&1
mkdir "C:\ProgramData\Microsoft\EdgeCore" >NUL 2>&1
mkdir "C:\ProgramData\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "%localappdata%\Microsoft\Edge" >NUL 2>&1
mkdir "%localappdata%\Microsoft\EdgeCore" >NUL 2>&1
mkdir "%localappdata%\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "%appdata%\Microsoft\Edge" >NUL 2>&1
mkdir "%appdata%\Microsoft\EdgeCore" >NUL 2>&1
mkdir "%appdata%\Microsoft\EdgeUpdate" >NUL 2>&1

icacls "C:\Program Files\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "C:\Program Files\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "C:\Program Files\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "C:\Program Files (x86)\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "C:\Program Files (x86)\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "C:\Program Files (x86)\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "C:\ProgramData\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "C:\ProgramData\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "C:\ProgramData\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "%localappdata%\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "%localappdata%\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "%localappdata%\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "%appdata%\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "%appdata%\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "%appdata%\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
 
i am certain winaero tweaker has/had a context menu item editor. sordum or nirsoft might have one. sordum will be the most likely.
 
i don't use winaero tweaker. i made my own tweaker but i like sordum's tools.
unfortunately new UI context menu can't be edited right now.
 
Today i added these commands to setupcomplete. it disabled microsoftteams and microsoftedge (edge only! not webview since we need it) installaton and blocks future installations...

system is clean on online install, no tray icons, no startuptasks to update or install them.
View attachment 5999

I reached my goal of clean stable fast windows 11. with the preset i shared, +replacing empty start.bin and these commands. its adware free. the only thing missing is contextmenu editor. but atleast i added my own menu
Code:
:: Block Teams
mkdir "%localappdata%\Microsoft\Teams" >NUL 2>&1
mkdir "C:\Program Files\WindowsApps\MicrosoftTeams_21253.510.996.1465_x64__8wekyb3d8bbwe" >NUL 2>&1

icacls "%localappdata%\Microsoft\Teams" /inheritance:r >NUL 2>&1
icacls "C:\Program Files\WindowsApps\MicrosoftTeams_21253.510.996.1465_x64__8wekyb3d8bbwe" /inheritance:r >NUL 2>&1

:: Block Edge
@RD /S /Q "C:\Program Files\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "C:\Program Files\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "C:\Program Files\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "C:\ProgramData\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "C:\ProgramData\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "C:\ProgramData\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "%localappdata%\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "%localappdata%\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "%localappdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "%appdata%\Microsoft\Edge\*" >NUL 2>&1
@RD /S /Q "%appdata%\Microsoft\EdgeCore\*" >NUL 2>&1
@RD /S /Q "%appdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
@RD /S /Q "C:\Program Files (x86)\Microsoft\Temp\*" >NUL 2>&1
del /f /q "C:\Program Files\Microsoft\Edge\*" >NUL 2>&1
del /f /q "C:\Program Files\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "C:\Program Files\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\Edge\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "C:\ProgramData\Microsoft\Edge\*" >NUL 2>&1
del /f /q "C:\ProgramData\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "C:\ProgramData\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "%localappdata%\Microsoft\Edge\*" >NUL 2>&1
del /f /q "%localappdata%\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "%localappdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "%appdata%\Microsoft\Edge\*" >NUL 2>&1
del /f /q "%appdata%\Microsoft\EdgeCore\*" >NUL 2>&1
del /f /q "%appdata%\Microsoft\EdgeUpdate\*" >NUL 2>&1
del /f /q "C:\Program Files (x86)\Microsoft\Temp\*" >NUL 2>&1

mkdir "C:\Program Files\Microsoft\Edge" >NUL 2>&1
mkdir "C:\Program Files\Microsoft\EdgeCore" >NUL 2>&1
mkdir "C:\Program Files\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "C:\Program Files (x86)\Microsoft\Edge" >NUL 2>&1
mkdir "C:\Program Files (x86)\Microsoft\EdgeCore" >NUL 2>&1
mkdir "C:\Program Files (x86)\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "C:\ProgramData\Microsoft\Edge" >NUL 2>&1
mkdir "C:\ProgramData\Microsoft\EdgeCore" >NUL 2>&1
mkdir "C:\ProgramData\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "%localappdata%\Microsoft\Edge" >NUL 2>&1
mkdir "%localappdata%\Microsoft\EdgeCore" >NUL 2>&1
mkdir "%localappdata%\Microsoft\EdgeUpdate" >NUL 2>&1
mkdir "%appdata%\Microsoft\Edge" >NUL 2>&1
mkdir "%appdata%\Microsoft\EdgeCore" >NUL 2>&1
mkdir "%appdata%\Microsoft\EdgeUpdate" >NUL 2>&1

icacls "C:\Program Files\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "C:\Program Files\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "C:\Program Files\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "C:\Program Files (x86)\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "C:\Program Files (x86)\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "C:\Program Files (x86)\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "C:\ProgramData\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "C:\ProgramData\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "C:\ProgramData\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "%localappdata%\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "%localappdata%\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "%localappdata%\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
icacls "%appdata%\Microsoft\Edge" /inheritance:r >NUL 2>&1
icacls "%appdata%\Microsoft\EdgeCore" /inheritance:r >NUL 2>&1
icacls "%appdata%\Microsoft\EdgeUpdate" /inheritance:r >NUL 2>&1
Looks good! I would imagine that this would break version update when DISM tries to do the update though....?
 
Looks good! I would imagine that this would break version update when DISM tries to do the update though....?
nope my edits never break anything its so soft edited. it looks clean yes but its about UWP apps. i don't play with other components so nothing gets broken.
 
thanks garlin i might have solved my problem. i removed the answerfile xml at root, created user account as normal, logged in, updated and sysprepped. it didnt like Administrator account but does like normal user account.
 
Looks good! I would imagine that this would break version update when DISM tries to do the update though....?

DISM runs as TrustedInstaller, SetupComplete runs as SYSTEM. DISM would win on permissions. The way to test this would be install the previous month's CU in your image, and run WU. If DISM wins, you'd have to switch to NSudo and execute the batch.
 
I really wonder why we can't remove .bmp and .txt from create>new
also can't add .ps1.....

i want to use new context menu but its existing options are completely non editable.
 
.bmp and .txt can be removed if you remove paint and notepad by ntlite
.shortcut couldn't be removed and .ps1 couldn't be added back (i even tried installing powershell 7 and preview didn't add itself also adding it as reg entry didn't work)

1636488051216.png

i just want to remove .bmp and windows forcing me to remove paint just to do it. ffs its stupid. i would freakig completely destroy notepad and paint but even ntlite's edit preset button won't work if i remove notepad nuhi
 
oh i'm smart :p

To remove .txt and .bmp from Create>New Context Menu without removing notepad and paint components from windows.

For Paint Open
C:\Program Files\WindowsApps\Microsoft.Paint_11.2110.0.0_x64__8wekyb3d8bbwe\AppxManifest.xml

For Notepad Open
C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_10.2103.7.0_x64__8wekyb3d8bbwe\AppxManifest.xml

And remove the line starting with
<uap:FileType uap4:ShellNewFileName=

You are going to need permisions to achieve this, i suggest using softwares like nsudo. may do a tool to automate the process
 
open chosen text editor with power run ui then drag xml to editor window.
 
Last edited:
Modifying AppXManifest.xml will get reverted on SFC /scannow, since it's signed in component store. Just beware.
 
I read somewhere start.bin is portable, once you're done customizing -- it can be copied to any machine. And it's doubly encrypted (for reasons?). Guessing for the express purpose of preventing edit to the reserved icons.
 
open chosen text editor with power run ui then drag xml to editor window.
won't work for that folder.... too many sh*t is going on there.. you need to take file and place it back

another approach would be editing paint uwp setup
 
Back
Top