Uninstall Apps in Windows 10  

Page 39 of 66 FirstFirst ... 29373839404149 ... LastLast

  1. Posts : 31,623
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #380

    SightUp said:
    Your command should say
    ... where-object {$_.packagename -like "*Microsoft.People*"}...
    but is being read from the .bat file as
    ... where-object {$_.packagename ûlike "*Microsoft.People*"}...

    The '-' symbol is being read as 'û'. Seems that Notepad may be saving it with the wrong encoding, try setting it to 'save as' using ANSI encoding. Also, you seem to be using the symbol which is not the same as - (the minus sign) even though it looks similar.
      My Computers


  2. Posts : 194
    Windows 10
       #381

    I got a new error for you.

    Uninstall Apps in Windows 10-captaure.png

    Here is the command I used:

    PowerShell -Command "Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Microsoft.People*"} | remove-appxprovisionedpackage -online"
    Pause


    Is it still wrong?
      My Computer


  3. Posts : 31,623
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #382

    SightUp said:
    I got a new error for you.

    Here is the command I used:

    PowerShell -Command "Get-appxprovisionedpackage -online | where-object {$_.packagename -like "*Microsoft.People*"} | remove-appxprovisionedpackage -online"
    Pause

    Is it still wrong?
    Yes @SightUp, but not in the way you may think.

    Here you are falling foul of the quotes marks. You have to put quotes around the command you pass to Powershell, but the Powershell command itself uses quotes inside it. The first " is paired with the second to determine what command is passed to Powershell, but the second " is part of the powershell command. Effectively the command you gave Powershell was just:
    "Get-appxprovisionedpackage -online | where-object {$_.packagename -like "
    (everything after the second " was ignored)

    The way round this is to use different quotes for different purposes. You can use ' as well as " to mark out a string. Try this minor modification that uses both types of quotes.

    PowerShell -Command "Get-appxprovisionedpackage -online | where-object {$_.packagename -like '*Microsoft.People*'} | remove-appxprovisionedpackage -online"
    Pause
      My Computers


  4. Posts : 194
    Windows 10
       #383

    Bree said:
    Yes @SightUp, but not in the way you may think.

    Here you are falling foul of the quotes marks. You have to put quotes around the command you pass to Powershell, but the Powershell command itself uses quotes inside it. The first " is paired with the second to determine what command is passed to Powershell, but the second " is part of the powershell command. Effectively the command you gave Powershell was just:
    "Get-appxprovisionedpackage -online | where-object {$_.packagename -like "
    (everything after the second " was ignored)

    The way round this is to use different quotes for different purposes. You can use ' as well as " to mark out a string. Try this minor modification that uses both types of quotes.

    PowerShell -Command "Get-appxprovisionedpackage -online | where-object {$_.packagename -like '*Microsoft.People*'} | remove-appxprovisionedpackage -online"
    Pause
    Uninstall Apps in Windows 10-capt124ure.png

    Is this what we want?
      My Computer


  5. Posts : 31,623
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #384

    SightUp said:
    Is this what we want?
    Look like the Powershell command completed without error this time. It's normal not see any sort of 'completed successfully' message from Powershell, so it only remains to check if the app has successfully been uninstalled.
      My Computers


  6. Posts : 194
    Windows 10
       #385

    Awesome. Glad we worked it out finally!
      My Computer


  7. Posts : 20
    Win 10 - 1709 -x64 Fr-CA
       #386

    @Brink
    Great List !! thank you !
    'dunno if you noticed (or if someone mentioned it) but there's a few apps missing :
    *Microsoft.Windows.Cortana* (you can always let her be, and disable her notifications and behaviour)
    *Microsoft.SpeedTest*
    *Duolingo* (spanish learner)
    *PicsArt*
    *Wunderlist*

    one I could never figure out what package it is, is the Translator... Can someone tell me what it is ? (Microsoft.Translator ???)

    Thank you
    Have a nice day :)
      My Computers


  8. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #387

    Thank you @fmartel. :)

    Microsoft Translator would be for this app: Translator | Microsoft Store
      My Computers


  9. Posts : 20
    Win 10 - 1709 -x64 Fr-CA
       #388

    Is there a way to make those apps (including OneDrive), once unInstalled and unProvisionned, to not re-appear or re-install for any subsequent (new) users ?
      My Computers


  10. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #389

    Using Option Three to uninstall the apps for new users should prevent that.
      My Computers


 

Tutorial Categories

Uninstall Apps in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
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 07:06.
Find Us




Windows 10 Forums