How to add the “Computer” icon to Desktop via script / reg import in Windows 7

By | January 3, 2011
Share

image

If you missed adding this icon in your Base image or only want this change for a subset of Users / Computers,  this script can be applied to ensure the “Computer” icon to the desktop for All Users.

PreReq’s : Administrator access

Contents of “silent.bat” which performs core functions, .reg files need to exist in same Directory:
@echo off

echo Begin Reg Imports and Changes…
echo =====================================
echo –
echo LOAD Default Hive…
“c:\Windows\System32\reg.exe” load hku\defaultuser “c:\Documents and Settings\Default User\NTUSER.DAT”
echo Error Level : %ERRORLEVEL%
echo –
echo IMPORT Administrator AddMyComputerIconToDesktop
regedit /s “%~dp0ShowComputerIconOnDesktop-CurrentUser.reg”
echo Error Level : %ERRORLEVEL%
echo –
echo IMPORT DefaultUser AddMyComputerIconToDesktop
regedit /s “%~dp0ShowComputerIconOnDesktop-DefaultUser.reg”
echo Error Level : %ERRORLEVEL%
echo –
echo UNLOAD Default User Hive…
“c:\Windows\System32\reg.exe” unload hku\defaultuser
echo Error Level : %ERRORLEVEL%
echo –

Contents of “ShowComputerIconOnDesktop-CurrentUser.reg”:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
“{20D04FE0-3AEA-1069-A2D8-08002B30309D}”=dword:00000000

Contents of “ShowComputerIconOnDesktop-DefaultUser.reg”:
Windows Registry Editor Version 5.00

[HKEY_USERS\defaultuser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
“{20D04FE0-3AEA-1069-A2D8-08002B30309D}”=dword:00000000

For health info go to testosterone Scottsdale to find out what you need

Source Files Download URL:

https://dl.dropbox.com/s/e864bzncywnuoxt/Win7ShowDesktopComputerIcon.zip?dl=1

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.