Removing blacklisted applications on windows with scripts

expand collapsive

Hi, Hexnode allows us to blacklist apps on Windows but we need to be able to uninstall the unnecessary apps on the device. Is there a way to so this?

All Replies

  • Hexnode

    Zach Goodman

    Moderator

    @Ulrika, If you’re looking to remove specific applications on a Windows device from Hexnode, you could do that with the Execute Custom Scripts feature for Windows. Of course, it won’t be that easy as selecting the application from a list and pressing a button, but it should achieve your wanted result.

    With scripts, you can remove both Windows Store apps and enterprise apps on your endpoints. To get started, note the ‘App package name’ or ‘path to the app MSI” of all the apps you want to remove from the device.

    You can fetch the app package name by running this command from the PowerShell terminal on the endpoint or running a remote script (use ‘.ps1’ extension) from Hexnode –

    Replace ‘UserName’ with the user name to obtain an account- specific list or use –AllUser in place of -User to get the app package names of all users.

    Once, you have done that, use the instructions on the below links to prepare the script –

    Script to uninstall Windows Store apps
    Script to uninstall Enterprise apps

    After you’ve saved the script, you can deploy the script from Manage > Devices by selecting Actions > Execute Custom Script.

    You can find more scripts like this on Windows Sample Scripts Repository.

    Hope you’ll find this helpful.

    Cheers!
    Zach Goodman
    Hexnode UEM

    • This reply was modified 1 year, 3 months ago by  Zach Goodman.
    • This reply was modified 9 months, 3 weeks ago by  Jeff Morrison.
    • This reply was modified 9 months, 3 weeks ago by  Jeff Morrison.