How to show/hide the My Computer icon on the desktop via the command line?

9,513

Try the following:

  1. To hide the icon:

    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 1 /f
    
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 1 /f
    
  2. To show the icon:

    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
    
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
    
Share:
9,513

Related videos on Youtube

sma6871
Author by

sma6871

Android developer @Babbel

Updated on September 18, 2022

Comments

  • sma6871
    sma6871 almost 2 years

    How I can show or hide the Computer (My Computer) icon on the desktop from CMD?

    • Ankit
      Ankit over 11 years
      Do you specifically need .lnk shortcut or any other .bat or something that can launch My Computer will do?
    • sma6871
      sma6871 over 11 years
      No, I want to enable Computer icon in desktop icons in windows 8
    • bummi
      bummi over 11 years
    • sma6871
      sma6871 over 11 years
      @bummi this post create shortcut but I want to show read Computer icon with Manage option on right click.