Intune - Apps - Spotify - Detection Rule

Sokoban 1,036 Reputation points
2023-10-22T10:44:18.12+00:00

Hi I trying to deploy Spotify with Intune Apps.

My problem is to find out how to make Detection rules to working.. I have downloaded from https://download.spotify.com/SpotifyFullSetup.exe

I have find a script...

$i=0 If (Test-Path "C:\Users\*\AppData\Roaming\spotify\spotify.exe"){$i++} If ($i -gt 0){Write-Host "Installed"}

But I don't find any spotify.exe in my installed test computer, any suggestions ?

Sokoban

Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
957 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,184 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andrew Hovering Beard 1 Reputation point
    2024-09-11T06:13:13.5566667+00:00

    Grabbed this from the Spotify Forums...
    You can use Winget to deliver the app via company portal.

     

    $WinGetResolve = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe"

    $WinGetPathExe = $WinGetResolve[-1].Path

    $WinGetPath = Split-Path -Path $WinGetPathExe -Parent

    [string]$wingetPath = Join-Path $WinGetPath "winget.exe"

    Execute-Process -Path $wingetPath -Parameters "install -e --id Spotify.Spotify --scope=machine --accept-package-agreements --accept-source-agreements --silent"

     

     

    https://winget.run/pkg/Spotify/Spotify

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.