How to Detect and Restrict Cursor with Intune

First find every Windows PC where Cursor is installed, then use Intune to stop it from running where it is not approved. Kuntur does the finding; the restriction is done in Intune with Windows app control. This page covers Windows; for Macs see the Jamf version.

By Kuntur team · Published

Step 1: find where Cursor is installed

Restrict only what you can see. Before writing a rule, find out which machines have Cursor, for which users, and how it was installed: the install method decides what a rule has to match. Two free ways:

  1. Download scan.ps1.
  2. Read it. It's plain text; here's what it does.
  3. Check its SHA-256 against the published hash: Get-FileHash .\scan.ps1 -Algorithm SHA256
  4. Run it: powershell -ExecutionPolicy Bypass -File .\scan.ps1

Windows shortcut, if you trust the source (PowerShell)

irm https://app.kuntur.io/scan.ps1 | iex

It needs no account and no admin rights, writes an HTML report to the Desktop and uploads nothing.

Step 2: see what a rule has to match

Cursor installs per user in %LOCALAPPDATA%\Programs\cursor or machine-wide in %ProgramFiles%\cursor. The script prints the path and the signer of Cursor.exe; a publisher rule on that signer covers both locations and survives updates.

Windows (PowerShell), read-only

# Read-only. Run on a test PC: where Cursor is installed and who signed it.
foreach ($p in "$env:LOCALAPPDATA\Programs\cursor\Cursor.exe", "$env:ProgramFiles\cursor\Cursor.exe") {
  if (Test-Path $p) {
    $p
    Get-AuthenticodeSignature $p | Select-Object Status, @{ n = 'Signer'; e = { $_.SignerCertificate.Subject } }
  }
}

Step 3: restrict Cursor with Intune

Intune offers two ways to stop an app from running on Windows. Both are Windows features delivered by Intune, and both should start in audit mode.

Target Cursor.exe with a publisher deny rule built from the signer the script prints, or a path rule for both install folders. Start in audit mode on a pilot group.

Roll out in audit mode first. App Control writes its events to Microsoft-Windows-CodeIntegrity/Operational and AppLocker to the Microsoft-Windows-AppLocker logs in Event Viewer, so you can see who would have been blocked before you enforce.

What the rule will not catch

Where Kuntur fits

Kuntur finds where Cursor is installed, for every user profile, and lets you mark it approved or unauthorized with an audit trail. It does not block, restrict or uninstall anything: the restriction on this page is done by your MDM. Use the inventory before the rule (who will it affect?) and after it (are there installs the rule does not match, such as WSL or another install method?).

Kuntur detects and reports; it does not block, restrict or uninstall anything. Free for up to 5 endpoints; Pro is US$3 per endpoint per month.

FAQ

Can Intune block Cursor?
Intune can deliver Windows app control (App Control for Business or AppLocker) that stops Cursor from running, ideally after an audit-mode trial. Intune itself does not detect Cursor unless you add a detection script.
Does Kuntur block Cursor?
No. Kuntur finds where Cursor is installed and records whether you approved it. Blocking is done with Intune's app control features or your EDR.
Will blocking Cursor break VS Code?
No, Cursor is a separate application with its own executable. A rule on Cursor's executable or signer does not touch VS Code.

Sources

  1. Microsoft Learn: App Control for Business policy in Intune (built-in controls, audit mode, managed installer)
  2. Microsoft Learn: Deploy App Control policies using Intune
  3. Microsoft (archived blog): Blocking apps with Intune and the AppLocker CSP

More guides and tools: