{"id":25508967,"url":"https://github.com/maximjsx/cursor-reset-powershell","last_synced_at":"2025-09-09T12:45:04.979Z","repository":{"id":270467329,"uuid":"910456579","full_name":"maximjsx/cursor-reset-powershell","owner":"maximjsx","description":"Reset Cursor Trial \u0026 Generator. A simple powershell script to reset Cursor editor's device identification system.","archived":false,"fork":false,"pushed_at":"2024-12-31T14:05:04.000Z","size":32,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T12:13:41.078Z","etag":null,"topics":["cursor","machineid","powershell","powershell-script","trialreset"],"latest_commit_sha":null,"homepage":"https://maximjsx.github.io/cursor-reset-powershell/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximjsx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-31T10:21:21.000Z","updated_at":"2025-03-15T15:04:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"c052ecad-8ddc-4bde-8071-3cb352907064","html_url":"https://github.com/maximjsx/cursor-reset-powershell","commit_stats":null,"previous_names":["max1mde/cursor-reset-powershell","maximjsx/cursor-reset-powershell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximjsx%2Fcursor-reset-powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximjsx%2Fcursor-reset-powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximjsx%2Fcursor-reset-powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximjsx%2Fcursor-reset-powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximjsx","download_url":"https://codeload.github.com/maximjsx/cursor-reset-powershell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225870,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cursor","machineid","powershell","powershell-script","trialreset"],"created_at":"2025-02-19T08:31:36.064Z","updated_at":"2025-04-10T13:34:41.217Z","avatar_url":"https://github.com/maximjsx.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003csup\u003eThis tool can help resolve issues related to account restrictions when switching between accounts or during trial periods.\u003c/sup\u003e\n\u003ch1\u003eCursor Trial Reset Tool (PowerShell Version)\u003c/h1\u003e\n\u003cp\u003eA Windows-focused PowerShell utility that manages\u003cbr\u003e Cursor editor's device identification system by resetting stored device IDs.\u003c/p\u003e  \n\u003cimg width=\"700\" src=\"https://github.com/user-attachments/assets/d2622897-98e3-489e-9f08-198987497765\"\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n## How It Works\nThe script generates random device IDs, letting Cursor recognize your system as new. It backs up your original config file before any changes.\n\n## Key Features\n- 🔄 Automatic backup of original configuration\n- 📦 Works out of the box - requires only Windows PowerShell (pre-installed on all Windows systems)\n\n\u003e [!IMPORTANT]  \n\u003e You must log out and completely close Cursor before running the script.  \n\u003e If Cursor is running in the background, it may revert to the previous device ID, undoing the reset.\n\n## Usage\nOpen Windows Powershell and paste this one-line script into the terminal.  \n\u003cimg width=\"400\" src=\"https://github.com/user-attachments/assets/fb6a8c9a-0925-4cca-ae60-e882b3ef6cdc\"\u003e\n\n```powershell\n$sf=\"$env:APPDATA\\Cursor\\User\\globalStorage\\storage.json\";if(Test-Path $sf){Copy-Item $sf \"$sf.backup_$(Get-Date -Format 'yyyyMMdd_HHmmss')\";$c=Get-Content -Raw $sf}else{$d=@{};New-Item -ItemType Directory (Split-Path $sf) -Force};function Get-RandHex{$b=New-Object byte[] 32;(New-Object Security.Cryptography.RNGCryptoServiceProvider).GetBytes($b);-join($b|%{'{0:x2}' -f $_})};$c=$c -replace '(?\u003c=\"telemetry.machineId\":\\s*\")[^\"]*(?=\")', (Get-RandHex) -replace '(?\u003c=\"telemetry.macMachineId\":\\s*\")[^\"]*(?=\")', (Get-RandHex) -replace '(?\u003c=\"telemetry.devDeviceId\":\\s*\")[^\"]*(?=\")', (New-Guid).Guid;Set-Content -Path $sf -Value $c -NoNewline;$d=[System.Text.RegularExpressions.Regex]::Matches($c,'\"telemetry\\.(machineId|macMachineId|devDeviceId)\":\\s*\"([^\"]*)\"')|ForEach-Object{$_.Groups[2].Value}|Select-Object -First 3;Write-Host \"`n✅ Cursor Trial Successfully Reset - New Device IDs Generated:`n\";@{machineId=$d[0];macMachineId=$d[1];devDeviceId=$d[2]}|ConvertTo-Json\n```\n\nOr run the [script](script.ps1): `powershell -File .\\script.ps1` (in terminal or powershell)\n\n\u003cbr\u003e\n\nIf you are unsure about the safety of the script,   \nyou can generate the IDs on https://max1mde.github.io/cursor-reset-powershell/ and replace the IDs manually.\n\n\u003cbr\u003e\n\n### Configuration Location\nThe Windows configuration file is located at:\n```\n%APPDATA%\\Cursor\\User\\globalStorage\\storage.json\n```\n(Typically resolves to `C:\\Users\\[YourUsername]\\AppData\\Roaming\\Cursor\\User\\globalStorage\\storage.json`)\n\nBackups are created in the same directory with timestamps: `storage.json.backup_YYYYMMDD_HHMMSS`\n\n## Important Notice\nThis tool is developed for research and educational purposes only. Please use responsibly.\nThe developer assumes no liability for any issues that may arise from using this tool.\n\n## Credits\nhttps://github.com/ultrasev/cursor-reset\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximjsx%2Fcursor-reset-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximjsx%2Fcursor-reset-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximjsx%2Fcursor-reset-powershell/lists"}