Page 19 of 27 FirstFirst ... 91718192021 ... LastLast

  1. Joined : Oct 2013
    Posts : 16,557
    64-bit Windows 10 Pro build 14986
       2016-05-22 #180

    I don't see anything wrong with your commands for Messaging, but the error indicates that there is some problem with the online command.

    Do you still have the Messaging app showing in All Apps after creating a new account?

    In addition, use the PowerShell command below to see if the Messaging package is still listed.

    Get-AppxPackage | Select Name, PackageFullName
      My System SpecsSystem Spec


  2. Joined : Apr 2016
    Florence, Italy
    Posts : 22
    Windows 10 64 bit
       2016-05-22 #181

    Brink said: View Post
    I don't see anything wrong with your commands for Messaging, but the error indicates that there is some problem with the online command.

    Do you still have the Messaging app showing in All Apps after creating a new account?

    In addition, use the PowerShell command below to see if the Messaging package is still listed.

    Get-AppxPackage | Select Name, PackageFullName

    You do have a point! It is the only App among those uninstalled, together with SkypeVideo, which is again there after creating a new account.
    Click image for larger version. 

Name:	Messaging 2.PNG 
Views:	19 
Size:	471.7 KB 
ID:	81124

    The package itself though does not seem to be listed.
    Click image for larger version. 

Name:	Name.JPG 
Views:	20 
Size:	200.9 KB 
ID:	81125

    On top of that I tried to re-apply the "-online" switch getting the same error message
    Click image for larger version. 

Name:	-online2.JPG 
Views:	18 
Size:	52.1 KB 
ID:	81131

    and this makes me think that my 1st idea, "the order -online > -allusers does not work right", is totally inconsistent.

    I really don't know what to say.
    Last edited by Lmbrt; 2016-05-22 at 12:44.
      My System SpecsSystem Spec


  3. Joined : Oct 2013
    Posts : 16,557
    64-bit Windows 10 Pro build 14986
       2016-05-22 #182

    As a test, see if using the current user command below may remove it from All Apps.

    Get-AppxPackage *Messaging* | Remove-AppxPackage
      My System SpecsSystem Spec


  4. Joined : Apr 2016
    Florence, Italy
    Posts : 22
    Windows 10 64 bit
       2016-05-22 #183

    Brink said: View Post
    As a test, see if using the current user command below may remove it from All Apps.

    Get-AppxPackage *Messaging* | Remove-AppxPackage

    Afraid not. I applied the string witout getting any error message, but Messaging is still there in All Apps. Know what, tomorrow morning local time I try on a clean PC to apply first Messaging and then Skype. I'll keep you posted.

    And thanks a lot for your patience.
      My System SpecsSystem Spec


  5. Joined : Oct 2013
    Posts : 16,557
    64-bit Windows 10 Pro build 14986
       2016-05-22 #184

    It sure is being a stubborn app.
      My System SpecsSystem Spec


  6. Joined : Apr 2016
    Florence, Italy
    Posts : 22
    Windows 10 64 bit
       2016-05-23 #185

    Brink said: View Post
    It sure is being a stubborn app.
    It is indeed!

    I have performed three tests and the results seem rather interesting to me.

    Test 1 (-online > -allusers)

    1. I did a clean installation of Windows 10 and in the %ProgramFiles%\WindowsApps folder I found 78 folders.
    2. I ran the -online commands taking care this time to apply FIRST Messaging and THEN skypeapp (before all the others just for clarity) and I got NO error message.
    3. I ran the -allusers commands according to the same sequence as above and again I got NO error messsage. In the %ProgramFiles%\WindowsApps there were then 38 folders left.
    4. I created a new User Account and there was NEITHER Messaging NOR Get Skype in the All Apps Menu.


    Test 2 ( -allusers > -online)

    1. I did a new clean installation of Windows 10 on the very same machine according to the very same parameters as above and in the %ProgramFiles%\WindowsApps folder I found the very same 78 folders.
    2. I ran the -allusers commands taking care again to apply FIRST Messaging and THEN skypeapp (before all the others just for clarity) and I got NO error message.
    3. I ran the -online commands according to the same sequence as above and again I got NO error messsage. In the %ProgramFiles%\WindowsApps there were then 42 folders left.
    4. I created a new User Account and there was NEITHER Messaging NOR Get Skype in the All Apps Menu.


    According to such results it would seem that maybe Messaging is somehow related to / a component of Skype and hence it is relevant the order according to which the two are uninstalled, but it is totally irrelevant in what order the two switches are applied.

    The above results bring me to another consideration: you were most certainly right when you stated that

    Brink said: View Post
    Q5) If you use the "All users" option first to uninstall an app, then the app won't be installed to be able to use the "-online" switch to only remove the app for new users created afterwards.

    In fact, applying the -online switch before the -allusers one to the same apps get rid of a few more folders in %ProgramFiles%\WindowsApps, notably four (in this particular case) Microsoft.NET.Native.Framework... ones.

    Finally, I performed another

    Test 3 (Uninstall > -online/-allusers)
    1. On another machine I simply applied the official Uninstall as per Option One to a few apps and counted the number of folders left in %ProgramFiles%\WindowsApps.
    2. Then I applied the commands of Option Three with both switches to the same apps and a few more folders had disappeared.


    Well, it would seem that the second passage gets rid of more stuff than Option One alone.


    (my) Conclusions

    1. I would advise to uninstall Messaging before Get Skype.
    2. I would advise to apply the command switches to the same apps in the following order: -online before -allusers.
    3. I would advise to go directly for Option Three with both switches, raher that using the original uninstaller.


    Of course, all of the above come from my limited experience that I am simply sharing while waiting for your final assessment.

    Looking forward to reading you. And thanks again for your patience.
    Last edited by Lmbrt; 2016-05-23 at 12:48.
      My System SpecsSystem Spec


  7. Joined : Oct 2013
    Posts : 16,557
    64-bit Windows 10 Pro build 14986
       2016-05-23 #186

    Thank you for posting back with your findings.
      My System SpecsSystem Spec


  8. Joined : Jun 2016
    NYC
    Posts : 1
    Windows 10 Pro
       2016-06-17 #187

    Edwin, you've swapped the positions of the Remove and Where commandlets, therefore sending the entire list to Remove, and then running where on the removal command's output. Of course it took out everything. Sorry abt your problem. They call 'er PowerShell for a reason.

    Gary said: View Post
    I tried using your shortcut suggestion before using this script:
    Code:
    Get-AppxPackage -AllUsers | Remove-AppxPackage | where {$_.Name -notlike “*Store*”}
    The script worked but it was not supposed to remove the store and it did. I then tried your shortcut and I could not re install the store. Any Ideas?
    @Edwin
      My System SpecsSystem Spec


  9. Joined : Jun 2016
    Posts : 8
    Linux Mint 17.3 (Rosa ) Cinnamon 64bit
       2016-06-23 #188

    Option 4 problems


    Firstly, KUDOS to Brink for all the effort. A great thread. I'm not alone; so many people seem to be finding this helpful.

    Please excuse my Dunce-ness...

    I get errors with OPTION FOUR:


    As administrator in a PowerShell:

    2. To Remove All Apps except Store from Your (current) Account
    Code:
    PS C:\Users\Administrator> Get-AppXPackage | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
    At line:1 char:63
    + ... kage | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
    +                                                        ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (Windows.Miracas...l_cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
        + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand
    
    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.PrintDialog_6.2.0.0_neutral_neutral_cw5n1h2txyewy from: C:\Windows\PrintDialog 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] 01ddee6c-cd15-0000-0939-de0115cdd101 in the Event Log or use the command line Get-AppxLog -ActivityID
    01ddee6c-cd15-0000-0939-de0115cdd101
    ^^ a sample of the error


    As administrator in a PowerShell:

    3. To Remove All Apps except Store from Specific User Account
    Code:
    PS C:\Users\Administrator> Get-AppXPackage -User virtualbox | where-object {$_.name –notlike “*store*”} | 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 Microsoft.BioEnrollment_10.0.10586.0_neutral__cw5n1h2txyewy from:
    C:\Windows\SystemApps\Microsoft.BioEnrollment_cw5n1h2txyewy 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] 01ddee6c-cd15-0001-3430-de0115cdd101 in the Event Log or use the command line Get-AppxLog -ActivityID
    01ddee6c-cd15-0001-3430-de0115cdd101
    At line:1 char:80
    + ... lbox | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
    +                                                        ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (Microsoft.BioEn...__cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
        + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand
    ^^ a sample of the error


    As administrator in a PowerShell:

    4. To Remove All Apps except Store from New Accounts Created Afterwards
    Code:
    PS C:\Users\Administrator>  Get-appxprovisionedpackage –online | where-object {$_.packagename –notlike “*store*”} | Remove-AppxProvisionedPackage -online
    ^^ seems to work OK


    As administrator in a PowerShell:

    5. To Remove All Apps except Store from All Accounts
    Code:
    PS C:\Users\Administrator> Get-AppxPackage -AllUsers | where-object {$_.name –notlike “*store*”} | 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 Microsoft.Windows.CloudExperienceHost_10.0.10586.0_neutral_neutral_cw5n1h2txyewy from:
    C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy 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] 01ddee6c-cd15-0000-083b-de0115cdd101 in the Event Log or use the command line Get-AppxLog -ActivityID
    01ddee6c-cd15-0000-083b-de0115cdd101
    At line:1 char:73
    + ... sers | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
    +                                                        ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (Microsoft.Windo...l_cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
        + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand
    ^^ a sample of the error

    Is it simply that these commands do NOT work when run as Administrator?
    Or something else....
      My System SpecsSystem Spec


  10. Joined : Oct 2013
    Posts : 16,557
    64-bit Windows 10 Pro build 14986
       2016-06-23 #189

    Hello smokin,

    It's normal to get the error in red below from you excerpts above for some apps. It just means that there was an error trying to uninstall that specific app since Windows will not let it be uninstalled.

    This app is part of Windows and cannot be uninstalled on a per-user basis.
      My System SpecsSystem Spec


 
Page 19 of 27 FirstFirst ... 91718192021 ... LastLast


Similar Threads
Tutorial Category
Solved How to uninstall Apps using Powershell
Many of the Universal Apps cannot be uninstalled because the button is inactive (grayed out). This might be 'by design' for the Technical Preview since Microsoft wants users to test the Apps. The preferred method is to use the uninstall button...
Customization
Uninstall Windows 10
How do I uninstall Windows 1o and re-install windows 7 from Disk?
Installation and Setup
possible partition damage after Windows 10 uninstall?
I have no idea why (at least I think I have partitions) that either have been not fully been removed by Windows 10 and now it is damaging my Windows 8.1 install ..am I thinking this is correct, and if it is, how can i fix this? Matt
Installation and Setup
Solved How do I uninstall the Windows 10 upgrade option?
I installed the upgrade option on Windows 8. How do I uninstall it. 12822
Installation and Setup
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 08:25.
Find Us
Twitter Facebook Google+



Windows 10 Forums