18

I'm new to Powershell and have to use it now that I am doing a lot in Azure.

When I open the Azure Powershell window, the blinking cursor is not there and it's hard for me to tell where edit. How do I turn on the cursor? I have done a lot of searching but have not found the answer anywhere.

1 Answer 1

38

It is a powershell issue which defaults size of the cursor to 0 thus making it invisible. The fix is type the following command in the powershell window

[Console]::CursorSize = 25

5
  • 1
    Thanks! That worked. Is there a way I can persist the setting? Aug 19, 2014 at 22:51
  • 3
    Set it in your Powershell profile: technet.microsoft.com/en-us/library/ee692764.aspx Aug 19, 2014 at 23:13
  • Thanks. I found the documentation about creating a profile and got it all done. Aug 19, 2014 at 23:38
  • 7
    Raney's link required a little digging. If you're low on patience, this worked for me: Use Test-Path $profile to see if you have a profile already. If you get "false", use New-Item -path $profile -type file -force to make one. It'll tell you where the file is. Find it, open it, and paste [Console]::CursorSize = 25 in there and you're good! Next azure window you open will have a working cursor. Sep 5, 2015 at 15:24
  • They made me upgrade to Windows 10. Now in RDC Manager 2.7, in ISE the cursor disappears. The command above gives me an error "Exception setting "Cursorsize": "The handle is invalid."
    – MarcGel
    Apr 2, 2018 at 16:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.