Win10论坛

Win10正式版系统下载主题平板

重定义Modern UI,打造完美Windows全新体验

Windows10下载|安装|新手宝典|必备软件

搜索
查看: 861|回复: 0

[求助] DISM命令移除Win7组件包提示拒绝访问5?Win10并无此现象。 [复制链接]

Rank: 1

UID
4411977
帖子
105
PB币
103
贡献
0
技术
0
活跃
333
发表于 2018-12-10 22:57:59 |显示全部楼层
原版windows_7_x86_dvd_u_677486.iso提取install.wim后提取出旗舰版7x86.wim挂载并运行delete.cmd出现下图错误。
QQ图片20181210225507.png

若果7x86.wim经过Sysprep审核模式之后再挂载移除Apps则成功。究竟何解呢?
1、delete.cmd
  1. @echo off

  2. "%~dp0NSudoC\NSudoC.exe" -U:T -P:E "%~dp086W7_2.2RemoveApps.cmd"
复制代码


2、86W7_2.2RemoveApps.cmd
  1. set MT=Win7x86
  2. reg load HKLM\_Software "%MT%\Windows\System32\config\Software"
  3. for /f %%i in ('findstr /i . 86W7_2.2RemoveApps.txt 2^>nul') do ( call :SETVALUE %%i )
  4. reg unload HKLM\_Software
  5. for /f %%i in ('findstr /i . 86W7_2.2RemoveApps.txt 2^>nul') do dism /NoRestart /image:%MT% /Remove-package /Packagename:%%i

  6. :1、帮助
  7. rd /q/s      "Win7x86\Windows\Help\Help">nul
  8. rd /q/s      "Win7x86\Windows\Help\Windows">nul
  9. :2、Windows恢复
  10. if exist     "Win7x86\Windows\System32\Recovery\*.wim"  del /q/a/s/f "Win7x86\Windows\System32\Recovery\*.wim">nul
  11. :3、媒体示例
  12. rd  /q/s     "Win7x86\Users\Public\Pictures\Sample Pictures">nul
  13. :4、Windows Defender(serving\Packages\下无相关移除)
  14. rd  /q/s     "Win7x86\Program files\Windows Defender">nul
  15. rd  /q/s     "Win7x86\ProgramData\Microsoft\Windows Defender">nul
  16. del /q/a/s/f "Win7x86\Windows\PolicyDefinitions\zh-CN\WindowsDefender.adml">nul
  17. del /q/a/s/f "Win7x86\Windows\PolicyDefinitions\WindowsDefender.admx">nul
  18. rd  /q/s     "Win7x86\Windows\System32\Tasks\Microsoft\Windows Defender">nul

  19. @echo                ★★★  请按任意键退出! ★★★&pause>nul&exit

  20. :SETVALUE
  21. reg add    "HKLM\_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%~1" /v Visibility /t REG_DWORD /d 1 /f
  22. reg delete "HKLM\_Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%~1\Owners" /f
  23. goto:eof
复制代码
3、86W7_2.2RemoveApps.txt
  1. ;1、微软虚拟机
  2. Microsoft-Hyper-V-Common-Drivers-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  3. ;2、Anytime-Upgrade
  4. Microsoft-Windows-Anytime-Upgrade-Results-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  5. ;3、Windows备份
  6. Microsoft-Windows-Backup-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  7. ;4、BLB客户端(属于Bit Locker Windows)
  8. Microsoft-Windows-BLB-Client-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  9. ;5、商业扫描
  10. Microsoft-Windows-BusinessScanning-Feature-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  11. ;6、Windows版本选择(移除后会导致显示系统版本丢失并且Windows Loader无法激活)
  12. ;Microsoft-Windows-Branding-Ultimate-Client-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  13. ;7、库文件夹
  14. Microsoft-Windows-ClipsInTheLibrary-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  15. ;8、帮助
  16. Microsoft-Windows-Help-CoreClientUAUE-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  17. Microsoft-Windows-Help-Customization-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  18. ;9、家庭基础版
  19. Microsoft-Windows-HomeBasicEdition-wrapper~31bf3856ad364e35~x86~~6.1.7601.17514
  20. ;10、IE-疑难解答
  21. Microsoft-Windows-IE-Troubleshooters-Package-wrapper~31bf3856ad364e35~x86~en-US~6.1.7601.17514
  22. ;Microsoft-Windows-IE-Troubleshooters-Package-wrapper~31bf3856ad364e35~x86~~6.1.7601.17514
  23. ;11、IIS
  24. Microsoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  25. Microsoft-Windows-IIS-WebServer-AddOn-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  26. Microsoft-Windows-IIS-WebServer-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  27. ;12、Windows链接
  28. Microsoft-Windows-Links-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  29. ;13、WIndows Media Player
  30. Microsoft-Windows-MediaPlayback-OC-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  31. ;14、移动PC
  32. Microsoft-Windows-MobilePC-Client-Basic-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  33. Microsoft-Windows-MobilePC-Client-Premium-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  34. Microsoft-Windows-MobilePC-Client-Sensors-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  35. Microsoft-Windows-MobilePC-Client-SideShow-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  36. ;15、NFS服务
  37. Microsoft-Windows-NFS-ClientSKU-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  38. ;16、离线文件
  39. Microsoft-Windows-OfflineFiles-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  40. ;17、家长控制
  41. Microsoft-Windows-ParentalControls-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  42. ;18、本地子网对等方的网络内容
  43. Microsoft-Windows-PeerDist-Client-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  44. ;19、RIP侦听器
  45. Microsoft-Windows-RasRip-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  46. ;20、远程桌面连接
  47. Microsoft-Windows-RDC-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  48. ;21、Windows 恢复
  49. Microsoft-Windows-RecDisc-SDP-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  50. ;22、远程协助
  51. Microsoft-Windows-RemoteAssistance-Package-Client~31bf3856ad364e35~x86~~6.1.7601.17514
  52. ;23、媒体示例
  53. Microsoft-Windows-SampleContent-Music-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  54. Microsoft-Windows-SampleContent-Ringtones-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  55. ;24、Windows Security(不作处理,否则部署中会出错导致系统安装失败)
  56. ;Microsoft-Windows-Security-SPP-Component-SKU-Ultimate-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  57. ;25、家庭组
  58. Microsoft-Windows-Shell-HomeGroup-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  59. ;26、收件箱游戏
  60. Microsoft-Windows-Shell-InboxGames-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  61. ;27、终端服务(远程桌面和远程桌面会话主机服务器依赖此服务)
  62. Microsoft-Windows-TerminalServices-CommandLineTools-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  63. Microsoft-Windows-TerminalServices-MiscRedirection-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  64. Microsoft-Windows-TerminalServices-Publishing-WMIProvider-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  65. Microsoft-Windows-TerminalServices-RemoteApplications-Client-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  66. Microsoft-Windows-TerminalServices-UsbRedirector-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  67. Microsoft-Windows-TerminalServices-WMIProvider-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  68. ;28、Telnet客户端
  69. Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  70. Microsoft-Windows-Telnet-Server-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  71. ;29、TFTP终端
  72. Microsoft-Windows-TFTP-Client-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  73. ;30、虚拟PC
  74. Microsoft-Windows-VirtualPC-Licensing-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  75. Microsoft-Windows-VirtualPC-USB-RPM-Package~31bf3856ad364e35~x86~~6.1.7601.17514
  76. ;31、光学识别
  77. Microsoft-Windows-WinOcr-Package~31bf3856ad364e35~x86~~6.1.7601.17514
复制代码



关闭

站长推荐

已经开启实名认证了哟
这里可以进行实名操作:点我点我点我
回顶部
Copyright (C) 2005-2019 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛 | 电脑硬件 | 安卓软件