从提升的 Powershell提示符运行以下命令:
gwmi Win32_Product -Filter "Name LIKE 'Microsoft Advertising%'"
它应该显示出罪魁祸首:
IdentifyingNumber : {6AB13C21-C3EC-46E1-8009-6FD5EBEE515B}
Name : Microsoft Advertising SDK for Windows 8.1 - ENU
Vendor : Microsoft Corporation
Version : 8.1.30809.0
Caption : Microsoft Advertising SDK for Windows 8.1 - ENU
IdentifyingNumber : {6AC81125-8485-463D-9352-3F35A2508C11}
Name : Microsoft Advertising SDK for Windows Phone 8.1 XAML - ENU
Vendor : Microsoft Corporation
Version : 8.1.40427.0
Caption : Microsoft Advertising SDK for Windows Phone 8.1 XAML - ENU
IdentifyingNumber : {5C87A4DB-31C7-465E-9356-71B485B69EC8}
Name : Microsoft Advertising SDK for Windows Phone - ENU
Vendor : Microsoft Corporation
Version : 6.2.960.0
Caption : Microsoft Advertising SDK for Windows Phone - ENU
IdentifyingNumber : {EBD9DB6D-180B-4C59-9622-B75CC4B32C94}
Name : Microsoft Advertising Service Extension for Visual Studio
Vendor : Microsoft Corporation
Version : 12.0.40402.0
Caption : Microsoft Advertising Service Extension for Visual Studio
然后要实际卸载,请添加| foreach { $_.Uninstall() }
到命令,如下所示:
gwmi Win32_Product -Filter "Name LIKE 'Microsoft Advertising%'" | foreach { $_.Uninstall() }
每个显示哪个:
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 0
PSComputerName :
要寻找的重要事情是ReturnValue : 0
成功。如果得到ReturnValue : 1603
它,可能意味着您的Powershell提示没有提升(以管理员身份运行)。(此处记录了ReturnValues的完整列表)