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.
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:
- Across the fleet: the Intune Remediations detection script already includes Cursor. It is read-only and reports per device.
- On one machine: the free Kuntur scanner lists Cursor with every other AI tool, extension and MCP server it finds. Details per OS are in How to detect Cursor.
- Download scan.ps1.
- Read it. It's plain text; here's what it does.
- Check its SHA-256 against the published hash:
Get-FileHash .\scan.ps1 -Algorithm SHA256 - Run it:
powershell -ExecutionPolicy Bypass -File .\scan.ps1
Windows shortcut, if you trust the source (PowerShell)
irm https://app.kuntur.io/scan.ps1 | iexIt 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.
- App Control for Business (Endpoint security > App Control for Business > Create Policy). In enforce mode, apps that a policy does not allow are blocked. The built-in controls trust Windows components and Store apps, and optionally apps with a good reputation and apps from a managed installer. Built-in controls are allow-based, so a popular signed app may still be trusted; to target one app, upload a custom policy XML (for example built with Microsoft's App Control policy wizard) that contains a deny rule for it.
- AppLocker, delivered through the AppLocker CSP in a custom configuration profile. AppLocker rules can deny an executable by publisher, path or file hash, or a Store app by packaged-app rule. Check Microsoft's documentation for the Windows editions that enforce AppLocker in your environment.
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
- Other VS Code forks and extensions. Blocking Cursor does not affect Windsurf, VS Code with AI extensions or Claude Code in a terminal.
- Portable copies outside the install folders escape path rules (publisher rules still apply if the file is signed).
- WSL and remote development run on other systems.
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
- Microsoft Learn: App Control for Business policy in Intune (built-in controls, audit mode, managed installer)
- Microsoft Learn: Deploy App Control policies using Intune
- Microsoft (archived blog): Blocking apps with Intune and the AppLocker CSP
More guides and tools: