自动推广无非就是系统镜像中自带或者联网以后自动安装的软件广告推广。

第一种

@ECHO OFF&TITLE 绿化选项
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0x00000000" /f >nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d "0x00000001" /f >nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore" /v "AutoDownload" /t REG_DWORD /d "0x00000002" /f >nul
if exist "%WinDir%\SysWOW64" reg add "HKCU\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d "0x00000000" /f >nul
if exist "%WinDir%\SysWOW64" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d "0x00000001" /f >nul
Start /wait schtasks.exe /Change /DISABLE /TN "\Microsoft\Windows\WindowsUpdate\Automatic App Update" >nul
gpupdate /force >nul
taskkill /f /im explorer.exe
start %systemroot%\explorer

第二种

封装前修改文件 打开

C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\DefaultLayouts.xml

PreInstalledAppsEnabled="true"全部替换为PreInstalledAppsEnabled="false"

第三种

设置 - 后台应用 - 允许应用在后台运行 - 关。

第四种

删除

Get-AppXPackage | Remove-AppxPackage”` 

恢复

“Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}”