I've tried different solutions, but this one seems to do the job every time.
In addition I've added some icons and batch files to quickly add power related shortcuts on your desktop.
Rebuilding icon cache
Windows messes up its icon cache now and again (no clue why). Typical symptoms are 'empty' icons (Windows 10) or 'broken' icons (Windows 7). I've seen several solutions, but didn;t always work. This is a compilation / combination of things I've found, and it seems to do the job, even though I only have a limited understanding of how this works 😅
- ie4uinit.exe -show
- taskkill /IM explorer.exe /F
- DEL /A /Q "%localappdata%\IconCache.db"
- DEL /A /F /Q "%localappdata%\Microsoft\Windows\Explorer\iconcache*"
- shutdown.exe /r /t 0
I've included this batchfile in the download.
There are several hints and tips on the Internet related to power shortcuts, allowing quick shutdown / standby / reboot and so on. Not all of these scripts are working properly, or they only work on XP, or Windows 7, or Windows 10.
I've included a few of these scripts as well as associated icons to make life easier. If one version doesn't work, there's another one at your service.
I've included some programs required by these batch files.
- psshutdown. exe
- switchuser.exe - use this one if tsdiscon doesn't work for you
- reicon.exe - google and download 'desktopok' for Windows 8 and 10
These are, obviously, not mine, so please read any included documentation and licenses.
Some icons were retrieved from the internet, some exported, and some I've created myself. Icons are available in Windows 7 and Windows 10 styles.
Create a folder C:\software\power_shortcuts
Copy any of the .lnk files to your desktop as you see fit
All links and paths are 'hardcoded' so you have to modify them if you install in another location.
You can download the archive here: http://www.ninelizards.com/other/power_shortcuts.zip