Computer viruses quite often include the function of removing all desktop icons. The program icon can be removed by the user himself accidentally during the cleaning process. Be that as it may, the problem of restoring icons on the desktop can be faced by everyone.
Instructions
Step 1
Click the Start button and type regedit in the search bar. This will allow you to enter the registry editor utility, where the parameters that need to be changed are stored.
Step 2
Select and sequentially open keys from the list on the left side of the screen: HKEY_CURRENT_USER
Software
Microsoft
Windows
CurrentVersion
Policies
Explorer.
Step 3
Make sure NoDesktop is listed on the right side of the window. Otherwise, create it by selecting "Create a new parameter" in the service menu, which can be invoked by right-clicking on an empty space in the open registry editor window. Set the parameter type to DWORD, which allows you to store numeric values.
Step 4
Open the newly created parameter by double-clicking on the field with its name and enter the value 0. In some cases, to restore the desktop icons, you may need to completely remove the parameter (if it was created by a malicious program). An alternative way to restore the desktop icons can be to write a script, doing all the work.
Step 5
Open Notepad and create a text file on your desktop.
Step 6
Enter the following value:
Dim WshShell
Dim value
Dim ResultOn Error Resume NextSet WshShell = CreateObject (″ Wscript. Shell ″)
Value = WshShell. RegRead (″ HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerNoDesktop ″) If (Value = ″ ″) or (Value = 0) Then
Result = MsgBox (″ Desktop icons visible. Hide? ″, 65, ″ Read result ″)
if Result = 1 then Value = 1
Else
Result = MsgBox (″ Desktop icons are hidden. Show? ″, 65, ″ Read result ″)
if Result = 1 then Value = 0
End ifWshShell. RegWrite ″ HKCUSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerNoDesktop ″, Value, ″ REG_DWORD ″ Result = MsgBox (″ A restart is required to complete the operation. Do you want to restart? ″, 65, ″ Restart ″
if Result = 1 then
Set OpSysSet = GetObject (″ winmgmts: {(Shutdown)}). ExecQuery (″ select * from Win32_OperatingSystem where Primary = true ″)
For Each OpSys In OpSysSet
OpSys. Reboot ()
Next
End IF
Step 7
Select "Save" from the "File" menu. Select "All Files" in the "Save as type" drop-down menu and enter the file name and extension.vbs. (Example: Desktop Icon.vbs)
Step 8
Run the script and restart your computer.