crypticus
Well-Known Member
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.
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
system is clean on online install, no tray icons, no startuptasks to update or install them.
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