none
删除win10 1703内置应用 RRS feed

  • 问题

  • 您好:

    1、我使用Get-AppxPackage -AllUser | Format-List -Property PackageFullName,PackageUserInformation,查看内置应用,并使用 Get-AppxPackage -AllUser Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy | Remove-AppxPackage 删除此应用,没有报错,但如何判定内置应用是否删除成功?执行命令后,查看C:\Windows\MiracastView,存在且内容无变化。

    2、是否有删除内置应用脚本,可以彻底清除内置应用,便于升到1709后做封装sysprep。

    我的版本是 win10 pro 1703,已参考以下文章:

    https://answers.microsoft.com/zh-hans/windows/forum/windows_10-desktop/%E5%A6%82%E4%BD%95%E5%8D%B8%E8%BD%BDwindows-10/0f27c132-5a4b-4e37-9a3d-595a6a5ca4b8?tm=1438578507561

    http://partnersupport.microsoft.com/zh-hans/par_clientsol/forum/par_win/win10-1703/d12641ad-14ac-4644-a4b5-9be437e11120

    2018年3月28日 7:38

全部回复


  • 您好, 

    你这个命令行是可以删除这个应用程序在当前存在的所有用户里。 

    Get-AppxPackage -AllUser Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy | Remove-AppxPackage 

    如果彻底是删除这个应用程序,我们需要同时删除provisioning的package:

    Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*miracast*"} | remove-appxprovisionedpackage –online

    查看应用程序是否被删除成功,可以使用: Get-AppxPackage -AllUser  以及 Get-appxprovisionedpackage 


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    2018年3月28日 9:15
    所有者:
  • 您好,已成功执行以下命令,执行后无报错:

    Get-AppxPackage -AllUser Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy | Remove-AppxPackage 

    Get-appxprovisionedpackage –online | where-object {$_.packagename –like "*miracast*"} | remove-appxprovisionedpackage –online

    最后执行 Get-AppxPackage -AllUser  ,结果如下(截取):没有看出删除前后的区别,请您详细说明?同时C:\Windows\MiracastView,存在且内容无变化。

    Name                   : Windows.MiracastView
    Publisher              : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    Architecture           : Neutral
    ResourceId             : neutral
    Version                : 6.3.0.0
    PackageFullName        : Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy
    InstallLocation        : C:\Windows\MiracastView
    IsFramework            : False
    PackageFamilyName      : Windows.MiracastView_cw5n1h2txyewy
    PublisherId            : cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-2434565282-2690212132-1681676285-1002 [pbj]: Installed}
    IsResourcePackage      : False
    IsBundle               : False
    IsDevelopmentMode      : False
    IsPartiallyStaged      : False

    Name                   : Windows.PrintDialog
    Publisher              : CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    Architecture           : Neutral
    ResourceId             : neutral
    Version                : 6.2.0.0
    PackageFullName        : Windows.PrintDialog_6.2.0.0_neutral_neutral_cw5n1h2txyewy
    InstallLocation        : C:\Windows\PrintDialog
    IsFramework            : False
    PackageFamilyName      : Windows.PrintDialog_cw5n1h2txyewy
    PublisherId            : cw5n1h2txyewy
    PackageUserInformation : {S-1-5-21-2434565282-2690212132-1681676285-1002 [pbj]: Installed}
    IsResourcePackage      : False
    IsBundle               : False
    IsDevelopmentMode      : False
    IsPartiallyStaged      : False

    2018年3月29日 1:41
  • 请尝试这个方法: 

    在 Windows 10 计算机上,将复制Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy.xmlC:\Windows.old\ProgramData\Microsoft\Windows\AppRepository\C:\ProgramData\Microsoft\Windows\AppRepository

    然后尝试重新使用命令行进行卸载。

    重新启动计算机,查看这个应用是否完全被卸载。 


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2018年3月29日 1:53
    所有者:
  • 还没有升级到1709版本,不存在C:\Windows.old\文件夹,在1703版本就不能卸载。请详细说明。谢谢
    2018年3月29日 3:36
  • 您好,

    如果是移除不能生效,我们还是看一下这几个日志,麻烦上传到网盘并共享连接给我们。 

    %WINDIR%\Logs\Dism\dism.log

    %WINDIR%\Logs\cbs\cbs.log


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2018年3月29日 7:03
    所有者:
  • 您好, 

    没有发现错误信息,考虑是否个别其他用户用-alluser的命令无法成功完成。

    建议: 

    1. 依次登陆存在的所有账户。(包括build-in administrator)

    2. 使用命令行在每个用户上运行删除这个应用: 

    Get-AppxPackage *MiracastView* | Remove-AppxPackage

    完成之后如果还是有问题,请帮忙收集这些eventlog: 

    %SystemRoot%\System32\Winevt\Logs\Microsoft-Windows-TWinUI%4Operational.evtx

    %SystemRoot%\System32\Winevt\Logs\Microsoft-Windows-AppXDeployment%4Operational.evtx


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    2018年3月30日 5:54
    所有者:
  • 执行Get-AppxPackage *MiracastView* | Remove-AppxPackage 命令
    使用本地管理员Administrator账户,报错如下:
    PS C:\Users\Administrator> Get-AppxPackage *MiracastView* | Remove-AppxPackage
    Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.
    (Exception from HRESULT: 0x80073CFA)
    error 0x80070032: AppX Deployment Remove operation on package
    Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy from: C:\Windows\MiracastView failed. This app is part of
    Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from the
    computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.
    NOTE: For additional information, look for [ActivityId] 44296ebc-c6fd-0000-b29b-2944fdc6d301 in the Event Log or use
    the command line Get-AppxLog -ActivityID 44296ebc-c6fd-0000-b29b-2944fdc6d301
    At line:1 char:34
    + Get-AppxPackage *MiracastView* | Remove-AppxPackage
    +                                  ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (Windows.Miracas...l_cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
        + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

    使用用户pbj账户,使用管理员权限执行powershell 报错如下:
    PS C:\windows\system32> Get-AppxPackage *MiracastView* | Remove-AppxPackage
    Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.
    (Exception from HRESULT: 0x80073CFA)
    error 0x80070032: AppX Deployment Remove operation on package
    Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy from: C:\Windows\MiracastView failed. This app is part of
    Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from the
    computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.
    NOTE: For additional information, look for [ActivityId] 44296ebc-c6fd-0002-dca3-2944fdc6d301 in the Event Log or use
    the command line Get-AppxLog -ActivityID 44296ebc-c6fd-0002-dca3-2944fdc6d301
    At line:1 char:34
    + Get-AppxPackage *MiracastView* | Remove-AppxPackage
    +                                  ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (Windows.Miracas...l_cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
        + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

    日志详见网盘:https://pan.baidu.com/s/1oEfhKNZVFjgEMJ9-CrhwbQ

    摘取:

    Log Name:      Microsoft-Windows-AppXDeploymentServer/Operational
    Source:        Microsoft-Windows-AppXDeployment-Server
    Date:          3/31/2018 3:49:32 PM
    Event ID:      707
    Task Category: (3)
    Level:         Error
    Keywords:      AppXDeploymentServer Keyword
    User:          DESKTOP-OC393M3\pbj
    Computer:      DESKTOP-OC393M3
    Description:
    error 0x80070032: AppX Deployment Remove operation on package Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy from: C:\Windows\MiracastView failed. This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from the computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-AppXDeployment-Server" Guid="{3F471139-ACB7-4A01-B7A7-FF5DA4BA2D43}" />
        <EventID>707</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>3</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000001</Keywords>
        <TimeCreated SystemTime="2018-03-31T07:49:32.836110500Z" />
        <EventRecordID>2909</EventRecordID>
        <Correlation ActivityID="{44296EBC-C6FD-0002-DCA3-2944FDC6D301}" />
        <Execution ProcessID="7760" ThreadID="7872" />
        <Channel>Microsoft-Windows-AppXDeploymentServer/Operational</Channel>
        <Computer>DESKTOP-OC393M3</Computer>
        <Security UserID="S-1-5-21-2434565282-2690212132-1681676285-1002" />
      </System>
      <EventData>
        <Data Name="DeploymentOperation">2</Data>
        <Data Name="PackageFullName">Windows.MiracastView_6.3.0.0_neutral_neutral_cw5n1h2txyewy</Data>
        <Data Name="Path">C:\Windows\MiracastView</Data>
        <Data Name="ErrorCode">0x80070032</Data>
      </EventData>
    </Event>

    2018年3月31日 8:10
  • 您好,

    对于这个错误,建议尝试leonghui 在Aug 26 2015 的回复在这个帖子里面:

    https://github.com/10se1ucgo/DisableWinTracking/issues/48 (英文)


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2018年4月2日 6:43
    所有者: