Created
January 10, 2019 09:12
-
-
Save Santaro255/16dc20f7b800c07ab13683eebe38641c to your computer and use it in GitHub Desktop.
Enable "My Computer" icon with powershell script. After running script desktop should be updated by pressing F5.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\ {20D04FE0-3AEA-1069-A2D8-08002B30309D} = 0/show , 1/hide | |
$path="HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" | |
$name="{20D04FE0-3AEA-1069-A2D8-08002B30309D}" | |
$exist="Get-ItemProperty -Path $path -Name $name" | |
if ($exist) | |
{ | |
Set-ItemProperty -Path $path -Name $name -Value 0 | |
} | |
Else | |
{ | |
New-ItemProperty -Path $path -Name $name -Value 0 | |
} |
need to -force
and thanks a lot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For reference other icons are:
"{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}"
"{59031a47-3f72-44a7-89c5-5595fe6b30ee}"
"{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}"
RecycleBin="{645FF040-5081-101B-9F08-00AA002F954E}"