It takes me a while, but when I get used to something, I hate to change.  Windows 7 introduced the new Taskbar, and I hate it.  I hate having to click or hover over a ‘stack’ PSH windows to select one. I prefer the old XP (rest in peace) way, where each window has its own icon in the taskbar.

And the Desktop Toolbar – I miss it.  There’s a certain utility in being able to find something without first minimizing all the windows with Win+D (or Alt+Shift+Tab).

Here’s some meatball surgery to add those back.  Why take all this time when it’s only a few clicks on my desktop?  Because I just gained rights to a new lab, which means hundreds of machines that may or many not need logging onto, which means a lot of clicking if I want a consistent desktop.

Note: the part to reload the taskbar (by restarting explorer.exe)  uses the Get-ProcessByUsername here, because I don’t want to kill all the explorer.exe processes on the machine, just mine.

http://blogs.msdn.com/b/timid/archive/2013/08/08/getting-user-names-for-processes.aspx

    #Configure taskbar: small icons, never combine
    $local:regKeys = @{
        TaskbarSizeMove = '0x1';
        DisablePreviewDesktop = '0x0';
        TaskbarSmallIcons = '0x1';
        TaskbarGlomLevel = '0x2'
    } 

    $local:regKeys.Keys |
    % {
        $key = $_;
        if (!((Get-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced).GetValueNames() -match $key))
        {
            reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v $key /t REG_DWORD /d $local:regKeys.$key;
        }
    } | Out-Null;

    # Add Desktop Taskbar
    if (!(Test-Path -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop) -or
        !((Get-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop).GetValueNames() -match "TaskbarWinXP"))
    {
        @"
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]
"TaskbarWinXP"=hex:0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,aa,4f,28,68,\
  48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,88,04,00,00,c0,0c,00,00,00,00,00,00,16,\
  00,00,00,00,00,00,00,00,00,00,00,16,00,00,00,00,00,00,00,01,00,00,00,01,00,\
  00,00,b0,e2,2b,d8,64,57,d0,11,a9,6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,11,00,\
  00,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,4c,00,00,00,\
  01,14,02,00,00,00,00,00,c0,00,00,00,00,00,00,46,81,01,00,00,11,00,00,00,40,\
  97,4e,50,25,2c,cf,01,d0,54,58,53,25,2c,cf,01,a0,62,45,56,25,2c,cf,01,00,00,\
  00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,\
  00,60,00,00,00,03,00,00,a0,58,00,00,00,00,00,00,00,73,6e,32,30,61,30,32,66,\
  65,73,30,38,00,00,00,00,f0,de,5d,83,56,38,4f,42,a2,7a,0f,c0,8d,be,63,ec,79,\
  18,d1,04,53,92,e3,11,90,c9,d8,d3,85,67,6e,cc,f0,de,5d,83,56,38,4f,42,a2,7a,\
  0f,c0,8d,be,63,ec,79,18,d1,04,53,92,e3,11,90,c9,d8,d3,85,67,6e,cc,00,00,00,\
  00,08,00,00,00,02,00,00,00,fd,03,00,00,01,00,00,00,09,00,00,00,22,00,00,00,\
  00,00,00,00,14,00,1f,42,25,48,1e,03,94,7b,c3,4d,b1,31,e9,46,b4,4c,8d,d5,00,\
  00,00,00,00,00,22,00,00,00,01,00,00,00,14,00,1f,44,47,1a,03,59,72,3f,a7,44,\
  89,c5,55,95,fe,6b,30,ee,00,00,00,00,00,00,22,00,00,00,02,00,00,00,14,00,1f,\
  50,e0,4f,d0,20,ea,3a,69,10,a2,d8,08,00,2b,30,30,9d,00,00,00,00,00,00,22,00,\
  00,00,03,00,00,00,14,00,1f,58,0d,1a,2c,f0,21,be,50,43,88,b0,73,67,fc,96,ef,\
  3c,00,00,00,00,00,00,22,00,00,00,04,00,00,00,14,00,1f,70,68,06,ee,26,0a,a0,\
  d7,44,93,71,be,b0,64,c9,86,83,00,00,00,00,00,00,22,00,00,00,05,00,00,00,14,\
  00,1f,78,40,f0,5f,64,81,50,1b,10,9f,08,00,aa,00,2f,95,4e,00,00,00,00,00,00,\
  22,00,00,00,06,00,00,00,14,00,1f,80,94,e6,99,53,e5,6c,6c,4d,8f,ce,1d,88,70,\
  fd,cb,a0,00,00,00,00,00,00,9a,00,00,00,07,00,00,00,8c,00,3a,00,32,06,00,00,\
  1c,43,0f,b5,20,00,48,50,53,59,53,54,7e,31,2e,4c,4e,4b,00,00,70,00,08,00,04,\
  00,ef,be,1c,43,0f,b5,1c,43,0f,b5,2a,00,00,00,e1,0e,01,00,00,00,08,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,48,00,50,00,20,00,53,00,79,00,73,00,74,\
  00,65,00,6d,00,20,00,4d,00,61,00,6e,00,61,00,67,00,65,00,6d,00,65,00,6e,00,\
  74,00,20,00,48,00,6f,00,6d,00,65,00,70,00,61,00,67,00,65,00,2e,00,6c,00,6e,\
  00,6b,00,00,00,1c,00,00,00,00,00,00,00,69,02,00,00,08,00,00,00,66,00,32,00,\
  b6,00,00,00,52,44,93,1a,20,00,50,4f,57,45,52,53,7e,31,2e,4c,4e,4b,00,00,4a,\
  00,08,00,04,00,ef,be,52,44,93,1a,52,44,93,1a,2a,00,00,00,a7,8f,01,00,00,00,\
  99,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,50,00,6f,00,77,00,65,00,72,\
  00,53,00,68,00,65,00,6c,00,6c,00,2e,00,6c,00,6e,00,6b,00,00,00,1c,00,00,00,\
  00,00,00,00,00,00,00,00,14,00,1f,50,e0,4f,d0,20,ea,3a,69,10,a2,d8,08,00,2b,\
  30,30,9d,19,00,2f,43,3a,5c,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,52,00,31,00,00,00,00,00,51,44,d5,be,10,00,57,69,6e,64,6f,77,73,00,\
  3c,00,08,00,04,00,ef,be,ee,3a,85,1a,51,44,d5,be,2a,00,00,00,7c,01,00,00,00,\
  00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,57,00,69,00,6e,00,64,00,\
  6f,00,77,00,73,00,00,00,16,00,56,00,31,00,00,00,00,00,51,44,e8,a9,10,00,53,\
  79,73,74,65,6d,33,32,00,00,3e,00,08,00,04,00,ef,be,ee,3a,86,1a,51,44,e8,a9,\
  2a,00,00,00,28,06,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,00,00,18,00,68,00,31,00,\
  00,00,00,00,ee,3a,a6,2c,10,00,57,49,4e,44,4f,57,7e,31,00,00,50,00,08,00,04,\
  00,ef,be,ee,3a,a6,2c,ee,3a,a6,2c,2a,00,00,00,b9,09,00,00,00,00,01,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,\
  00,50,00,6f,00,77,00,65,00,72,00,53,00,68,00,65,00,6c,00,6c,00,00,00,18,00,\
  4a,00,31,00,00,00,00,00,2c,43,72,05,10,00,76,31,2e,30,00,00,36,00,08,00,04,\
  00,ef,be,ee,3a,a6,2c,2c,43,72,05,2a,00,00,00,ba,09,00,00,00,00,01,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,76,00,31,00,2e,00,30,00,00,00,14,00,68,\
  00,32,00,00,3e,07,00,2c,43,67,05,20,00,70,6f,77,65,72,73,68,65,6c,6c,2e,65,\
  78,65,00,00,4a,00,08,00,04,00,ef,be,2c,43,67,05,2c,43,67,05,2a,00,00,00,e8,\
  46,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,70,00,6f,00,\
  77,00,65,00,72,00,73,00,68,00,65,00,6c,00,6c,00,2e,00,65,00,78,00,65,00,00,\
  00,1e,00,00,00,6f,00,00,00,c0,06,00,00,00,00,00,00,16,00,00,00,00,00,00,00,\
  00,00,00,00,16,00,00,00,00,00,00,00,01,00,00,00

"@ | Out-File "$env:temp\desktopToolbar.reg";
        reg import "$env:temp\desktopToolbar.reg" | Out-Null;
        Get-Process -Id (Get-ProcessByUsername | % { $_.ProcessId | Stop-Process;
    }