Ads and recommendations in Windows 11 are not one switch; they are spread across five places: Start, the lock screen, notifications, privacy and search. Turning off the settings below one by one removes most of them.
If going through five places is a hassle, PC Buster turns off the ads and recommendations with a few switches (free). Get PC Buster · details

Buttons, not commands. PC Buster finds what opens ad pop-ups, clears junk and points to what is broken. Checks and cleanup are free.
Free downloadThere is no switch in Settings, so you need a registry value. In Command Prompt (not as administrator):
reg add HKCU\Software\Policies\Microsoft\Windows\Explorer /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
After signing out and back in, Start menu search only looks inside your computer. To undo it, run the same command with /d 1 changed to /d 0.
PC Buster's Windows 11 Annoyance Fixes turns off ads and recommendations in the Start menu, Settings and lock screen, turns off Bing search, and hides the Copilot button and widgets, each with its own switch. They are all settings for your own account, so no administrator rights are needed, and unticking one returns it to the Windows default. It is free.
Windows Update fails or keeps spinningStop automatic update restartsWindows activation errorOld right-click menuWindows search not workingTaskbar not workingMake Chrome the default browserPC clock keeps going wrongSchedule a shutdownStart in Safe ModeHow to reset WindowsSee all fixes