Tip: You can quickly open the
%APPDATA%\Cursor\User\globalStorage\storage.json
file by pressing
WIN + R and pasting the path above.
You must log out and completely close Cursor before running the script. If Cursor is running in the background, it may revert to the previous device ID, undoing the reset.