If you manage Windows 11 devices with Intune, you may have recently noticed a new app appearing called OneDrive Photos.

It looks like Microsoft has silently installed a new application. It appears in the Start menu even on Enterprise SKUs, which is a bit surprising… or maybe not, since Microsoft has never been great at leaving customer apps out of the Enterprise.

In most enterprise environments, this app serves little purpose. OneDrive Photos only supports personal Microsoft accounts, not work or school accounts. If your organization blocks personal accounts, the app provides no business value and simply adds unnecessary clutter to users’ Start menus.

This blog post will describe how to remove the OneDrive Photos App using Intune. It’s not a complicated process, you just have to use the right script.

Intune Onedrive Photo app

What is OneDrive Photos

Our first assumption was that OneDrive Photos was just another Microsoft Store application.

Intune Onedrive Photo app

However, a closer look revealed something different. Inspecting the shortcut properties showed that it doesn’t launch a Store app at all. Instead, it points to:

C:\Program Files\Microsoft OneDrive\OneDrive.App.exe

Launching OneDrive.App.exe directly opens the exact same OneDrive Photos interface as the Start menu shortcut.

This indicates that OneDrive Photos isn’t a separate application. Instead, it’s a new experience built into the OneDrive client itself, with Microsoft simply exposing it as its own entry in the Start menu.

Intune Onedrive Photo app

The confusing part is that modern OneDrive installations now include multiple executables, each serving a different purpose.

The usual OneDrive sync client is:

C:\Program Files\Microsoft OneDrive\OneDrive.exe

This is the familiar process responsible for your OneDrive file synchronization

The second executable (notice the “app.exe” difference) , includes the OneDrive Photos interface that appears in the Start menu.

C:\Program Files\Microsoft OneDrive\OneDrive.App.exe

Likely, Microsoft will eventually introduce a dedicated Intune policy or Settings Catalog option to disable OneDrive experiences such as OneDrive Photos.

Until then, organizations can use workarounds, but waiting for an official management policy is generally the preferred approach. There’s a script by Nicky De Westelinck to remove the new OneDrive.App.exe completely, but we don’t recommend it as it may break other processes in the future.

We prefer using a remediation script to detect and remove the shortcut for now.

Intune OneDrive Photo App Detection script

This PowerShell script can be used as an Intune Onedrive Photo app remediation detection script. It checks whether the OneDrive Photos shortcut exists in any of the common locations:

$shortcutName = "OneDrive Photos.lnk"
$found = $false

$searchLocations = @(
    "$env:ProgramData\Microsoft\Windows\Start Menu\Programs",
    "$env:PUBLIC\Desktop"
)

foreach ($location in $searchLocations) {
    $shortcut = Join-Path $location $shortcutName

    if (Test-Path -LiteralPath $shortcut) {
        Write-Output "Found shortcut: $shortcut"
        $found = $true
    }
}

$userFolders = Get-ChildItem -Path "C:\Users" -Directory -ErrorAction SilentlyContinue

foreach ($user in $userFolders) {

    $userShortcut = Join-Path $user.FullName "AppData\Roaming\Microsoft\Windows\Start Menu\Programs\$shortcutName"

    if (Test-Path -LiteralPath $userShortcut) {
        Write-Output "Found shortcut: $userShortcut"
        $found = $true
    }
}

if ($found) {
    exit 1
}

Write-Output "OneDrive Photos shortcut not detected."
exit 0

On our test machine, the output returns that the shortcut has been found.

Intune OneDrive Photo App Remediation script

This PowerShell script can be used as an Intune Onedrive Photo app remediation script. It checks whether the OneDrive Photos shortcut exists in any of the common locations and will delete it. The script writes to a log file for troubleshooting. Change the path if needed.

$logFile = "C:\ProgramData\OneDrivePhotosRemediation.log"
$shortcut = "OneDrive Photos.lnk"

$shortcutList = @(
    (Join-Path $env:ProgramData "Microsoft\Windows\Start Menu\Programs\$shortcut")
    (Join-Path $env:PUBLIC "Desktop\$shortcut")
)

Get-ChildItem -Path "C:\Users" -Directory -ErrorAction SilentlyContinue | ForEach-Object {
    $shortcutList += Join-Path $_.FullName "AppData\Roaming\Microsoft\Windows\Start Menu\Programs\$shortcut"
}

Add-Content -Path $logFile -Value "----- $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') -----"

foreach ($item in $shortcutList) {
    if (Test-Path -LiteralPath $item) {
        Remove-Item -LiteralPath $item -Force
        Add-Content -Path $logFile -Value "Removed: $item"
        Write-Output "Removed: $item"
    }
    else {
        Add-Content -Path $logFile -Value "Not found: $item"
    }
}

Add-Content -Path $logFile -Value "Remediation completed.`r`n"

exit 0

On our test machine, the output shows that the shortcut has been found and deleted. In our start menu, no more OneDrive Photo App shortcut.

Intune

The last step is to send this detection and remediation script to your devices.

  • Save both scripts in separate files
  • In the Intune Console, go to Device / Scripts and remediation / Create
Intune Onedrive Photo app
  • Give your script a name, click next
Intune Onedrive Photo app
  • Provide the detection and remediation script that you just saved. Leave all other options at their default value, click Next
Intune Onedrive Photo app
  • Assign your script to the desired devices. In our lab, we selected All Devices but do your testing before deploying to a large computer group
Intune Onedrive Photo app
  • Back in the Script window, ensure that your script is Active and monitor its deployment.
Intune Onedrive Photo app

While OneDrive Photos may look like a newly installed application, it’s actually a new experience exposed by the existing OneDrive client through OneDrive.App.exe. If you want to keep your users’ Start menus clean and avoid user questions, removing the shortcut is currently the simplest solution.

We hope that future Intune Settings Catalog or Administrative Template policy will provide administrators with a supported way to disable these consumer-focused experiences.

Comments (0)