Spotify (per user) uninstall package / Request or share plz.

Hi,

Multiple users had they chance to install spotify in our enviroment. Not allowed anymore (they can use web-version)

Is there a nice PDQ or PS way to bulk uninstall them from +1000 machines

0

Comments

6 comments
Date Votes
  • Open up any of the machines that has it installed. Go to applications. Right click on the Spotify app and choose Create uninstall package in PDQ deploy.

    Now create a group in PDQ Inventory of all computers with Spotify installed. Start a deployment of the uninstall package applied to that group.

    0
  • Trick is that it is in userprofile .. and that varies between +2000 usernames I know how to make uninstall package, but does it work in this case?

    0
  • We have a command step that runs this as logged in user:

    C:\Users%username%\AppData\Roaming\Spotify\Spotify.exe /uninstall /silent

    But you can look and see in the application uninstall paths to see if yours differ.

    0
  • The application installs to the %appdata% location, and needs to be removed using the logged on user.

    _____________________________________________________________________________________________________

    <?xml version="1.0" encoding="utf-8"?>
    <AdminArsenal.Export Code="PDQDeploy" Name="PDQ Deploy" Version="18.4.0.0" MinimumVersion="15.0">
      <Package>
        <CurrentLibraryPackageVersionId value="null" />
        <PackageDefinition name="Definition">
          <Conditions type="list">
            <PackageStepCondition>
              <Architecture>Both</Architecture>
              <Version>All</Version>
              <TypeName>OperatingSystem</TypeName>
            </PackageStepCondition>
            <PackageStepCondition>
              <IsUserLoggedOn>LoggedOnUser</IsUserLoggedOn>
              <TypeName>LoggedOnUser</TypeName>
            </PackageStepCondition>
            <PackageStepCondition>
              <ConditionMode>None</ConditionMode>
              <InventoryCollectionId value="null" />
              <InventoryCollectionName></InventoryCollectionName>
              <TypeName>Collection</TypeName>
            </PackageStepCondition>
          </Conditions>
          <CopyMode>Default</CopyMode>
          <DelayedApprovalTimeSpan>7.00:00:00</DelayedApprovalTimeSpan>
          <DownloadApprovalMode>Manual</DownloadApprovalMode>
          <InventoryScanProfileId value="null" />
          <IsDownloadApprovalModeInherited value="true" />
          <ScanAfterDeployment value="null" />
          <Steps type="list">
            <CommandStep>
              <Command>%userprofile%\Appdata\Roaming\Spotify\Spotify.exe /uninstall /silent</Command>
              <Files></Files>
              <SuccessCodes>0,1641,3010</SuccessCodes>
              <RunAs value="null" />
              <Conditions type="list">
                <PackageStepCondition>
                  <Architecture>Both</Architecture>
                  <Version>All</Version>
                  <TypeName>OperatingSystem</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <IsUserLoggedOn>LoggedOnUser</IsUserLoggedOn>
                  <TypeName>LoggedOnUser</TypeName>
                </PackageStepCondition>
                <PackageStepCondition>
                  <ConditionMode>None</ConditionMode>
                  <InventoryCollectionId value="null" />
                  <InventoryCollectionName></InventoryCollectionName>
                  <TypeName>Collection</TypeName>
                </PackageStepCondition>
              </Conditions>
              <ErrorMode>StopDeploymentFail</ErrorMode>
              <Title>Uninstall Spotify</Title>
              <TypeName>Command</TypeName>
              <IsEnabled value="true" />
              <IsPostStep value="false" />
              <IsPreStep value="false" />
            </CommandStep>
          </Steps>
          <Timeout value="60" />
          <UseCustomTimeout value="false" />
          <RunAs>LoggedOnUser</RunAs>
        </PackageDefinition>
        <Description></Description>
        <NewLibraryPackageVersionId value="null" />
        <OriginalId value="null" />
        <Version></Version>
        <IsAutoDownload value="false" />
        <FolderId value="13" />
        <LibraryPackageVersionId value="null" />
        <Name>Uninstall Spotify</Name>
        <Path>Packages\Uninstallers\Uninstall Spotify</Path>
        <PackageDisplaySettings name="DisplaySettings">
          <DisplayType>Normal</DisplayType>
          <IconKey>Icon-Package</IconKey>
          <SortOrder value="9" />
        </PackageDisplaySettings>
      </Package>
    </AdminArsenal.Export>

     

     

     

    0
  • We also have the same problems with applications that are installed by the users in their accounts.

    An example like this i the Zoom video conference application, that have several security breaches :-(

    I would be nice with a solution for removing those applications.

     

    0
  • Please post any future package requests in the Package Library Requests section of the forum: https://help.pdq.com/hc/en-us/community/topics/200736147-Package-Library-Requests-PDQ-Deploy

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post