Fixa saknade ikoner i Windows
Installation & konfiguration 23 oktober 2019
Ibland så försvinner ikonerna på skrivbordet för Jupiter (eller andra program) och kunderna blir förvirrade.Kör nedanstående kommandon för att återskapa ikonerna.För Windows 7/8:ie4uinit.exe -ClearIconCacheFör Windows 10:ie4uinit.exe -showTesta nedanstående om detta inte funkar.How to rebuild the icon cache databaseTo rebuild the icon cache database on Windows 10, close any application that you may be running, and then do the following:Open Start and do a search for Command Prompt.Right-click the result and select Run as administrator.Type the following command to navigate to the icon cache database location and press Enter:cd %homepath%\AppData\Local\Microsoft\Windows\ExplorerType the following command to verify the icon cache database files are at the location and press Enter:dir iconcache*The output of the dir command should list these database files:iconcache_1280.dbiconcache_16.dbiconcache_1920.dbiconcache_256.dbiconcache_2560.dbiconcache_32.dbiconcache_48.dbiconcache_768.dbiconcache_96.dbiconcache_custom_stream.dbiconcache_exif.dbiconcache_idx.dbiconcache_sr.dbiconcache_wide.dbiconcache_wide_alternate.dbType the following command to stop File Explorer and press Enter:taskkill /f /im explorer.exeImportant: Once you terminate File Explorer, your desktop background and taskbar will disappear, leaving a black screen — but it's OK, it's only temporarily. You need to close File Explorer to be able to delete the icon cache files. Otherwise, you won't be able to do it.Type the following command to delete the iconcache files and press Enter:del iconcache*Quick Tip: If you get access denied trying to remove the files, you're probably not running Command Prompt with as an administrator. Repeat these steps, but making sure Command Prompt starts with administrative privileges.Type the following command to verify that you successfully deleted the icon cache files and press Enter:dir iconcache*If you still see some iconcache files, then it's likely that some apps are still running, which will prevent you from deleting the database files. Make sure to close them all, and repeat the steps.Type the following command to start File Explorer and press Enter:explorer.exeClose Command Prompt to complete the task.Om det fortfarande inte fungerarStoppa in detta i en textfil och döp den till t.ex. FixaIkoner.ps1 och kör den sedan med Powershell.# Load the necessary assembly with the SHChangeNotify functionAdd-Type @"using System;using System.Runtime.InteropServices;public class Shell32 {[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = true)]public static extern void SHChangeNotify(int wEventId, uint uFlags, IntPtr dwItem1, IntPtr dwItem2);}"@# Define constants$SHCNE_ASSOCCHANGED = 0x08000000$SHCNF_IDLIST = 0x0000# Call the SHChangeNotify function[Shell32]::SHChangeNotify($SHCNE_ASSOCCHANGED, $SHCNF_IDLIST, [IntPtr]::Zero, [IntPtr]::Zero)