Uninstalling Specific Apps for All Users


  1. Posts : 130
    Windows 10 Pro
       #1

    Uninstalling Specific Apps for All Users


    Hey guys,

    I am interested in setting up some company-wide commands to remove a lot of the built-in crap from Windows 10. Employees don't need to be using the Xbox app, and we don't need Get Office, Get Skype etc as we already have those installed using the administrator account before the user logs in.

    I was looking at Brink's useful tutorial here, and the option that would pertain to this is "To uninstall all Windows apps for only new added accounts afterwards"

    I notice that uses Get-AppXProvisionedPackages instead of just Get-AppxPackage.

    The thing is, I don't want to remove *all* the apps, some of them are actually useful, such as the photo gallery and calculator. I'd rather specify them manually...

    I did some tinkering around with Remove-AppxProvisionedPackage, but cannot get it to work. I get errors similar to this:
    Uninstalling Specific Apps for All Users-wuf0sy3.png

    Can somebody help me do this? Or is it simply not possible in Windows 10? I know there was a way to do it in 8 and 8.1, as I found some TechNet blog articles about it, with examples.

    Related question: can PowerShell commands be deployed over Group Policy? I know you can do cmd ones, and we already have a cmd file that's executed when the user logs on for the first time.
    If not, I can just make a note to do it using the admin account before joining the domain.
      My Computer


  2. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #2

    Hello, :)

    It looks like you didn't include the PackageFullName for the app in the command using step 4 in OPTION THREE below.

    remove-AppxProvisionedPackage PackageFullName

    https://www.tenforums.com/tutorials/4...a.html#option3
      My Computers


  3. Posts : 130
    Windows 10 Pro
    Thread Starter
       #3

    Ah, OK. I was thinking you needed that -online flag...

    I also found this via some searching:
    Get-appxprovisionedpackage –online | where-object {$_.packagename –like “*officehub*”} | remove-appxprovisionedpackage –online

    That seems to work too.

    Question about the package names: do they change based on hardware or is it always the same? If the packages get new versions as they get updated, it might be safer to search for it, no?
      My Computer


  4. Posts : 68,880
    64-bit Windows 11 Pro for Workstations
       #4

    The package name is based on the app itself. Usually, it'll stay the same for the app after updates though.
      My Computers


  5. Posts : 130
    Windows 10 Pro
    Thread Starter
       #5

    Is there any harm in using the search method though?

    Also, is there an equivalent to a .bat file for PowerShell commands? I know you can save it as a certain type of script, but then that has to be imported and it's a bit of a pain.

    Edit: never mind. I found out how to deploy a PowerShell script over Group Policy.
    Last edited by drfsupercenter; 31 Aug 2015 at 11:47.
      My Computer


 

  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 18:17.
Find Us




Windows 10 Forums