Remove Windows 10 preinstalled app for all user

BatchPatch Forums Home Forums BatchPatch Support Forum Remove Windows 10 preinstalled app for all user

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8725
    panda78
    Participant

    Hi all,

    i’m trying to run this command to my hosts to remove for all users preinstalled office365 trial version:

    cmd.exe /c echo . | powershell.exe -ExecutionPolicy Bypass -command Get-AppxPackage *office* | Remove-AppxPackage

    but return error 🙁

    How can i solve ?

    Thanks to all

    #9923
    doug
    Moderator

    Looks like you’re just missing quotes. One or both of these should work:

    powershell.exe "get-appxpackage *office* | remove-appxpackage"

    cmd.exe /c echo . | powershell.exe -ExecutionPolicy Bypass -command "Get-AppxPackage *office* | Remove-AppxPackage"

    #9924
    panda78
    Participant

    Thanks , solved

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.