Cursor CLI install throws error

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Running the recommended command irm 'https://cursor.com/install?win32=true' | iex throws an error that Get-WmiObject is not recognized.

Get-WmiObject:
Line |
   7 |      $systemType = (Get-WmiObject Win32_ComputerSystem).SystemType
     |                     ~~~~~~~~~~~~~
     | The term 'Get-WmiObject' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

According to this github issue from 2017, this command has been deprecated.

Steps to Reproduce

  1. run irm 'https://cursor.com/install?win32=true' | iex

Expected Behavior

No error would be thrown

Operating System

Windows 10/11

Version Information

N/A / the latest version of the date of posting

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

Can you try this:

  • Windows PowerShell 5.1 (if you’re on PowerShell Core 7+):
    Open the regular Windows PowerShell (not PowerShell Core) and run the command again.

What PowerShell version are you on? ($PSVersionTable.PSVersion)

I’ll pass this to the team so they can update the script.

I am on version 7.5.4, running it on version 5.1 causes no issues with the install process.

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.