Windows 10 Hidden shortcut musings

Discussion in 'Windows 10 Help and Support' started by Neemobeer, Feb 9, 2016.

  1. Neemobeer

    Neemobeer Windows Forum Team
    Staff Member

    Joined:
    Jul 4, 2015
    Messages:
    2,425
    Likes Received:
    366
    I was bored and decided to look at the GodMode shortcut. For those of you that don't know what that is I'll explain. It's basically a folder shortcut with a special CLSID extension. CLSID is short for Class ID. The godmode shortcut will display a lot of settings available in the Control panel, but they are all in a single window.
    2016-02-09_16-54-35.

    The only really important part of this is the .{GUID} the first part can be anything. It's certainly a nifty shortcut to have readily available but that isn't what I was curious about. I wanted to know if any of the other CLSID's had any useful functionality. I wrote this powershell script to build shortcuts out of ever CLSID that was available in the registry.
    Code:
    $saved_directory = "$($env:USERPROFILE)\Desktop\Shortcuts"
    
    New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
    PWD | Push-Location
    
    If (Test-Path $saved_directory)
    {
        Remove-Item -Path $saved_directory -Recurse -Force
    } Else
    {
        New-Item -Path $saved_directory -ItemType Directory
    }
    
    Set-Location HKCR:
    $keys = Get-ChildItem -Path .\CLSID
    $index = 1
    
    For($index; $index -le $keys.Count; $index++)
    {
        $keysplit = $keys[$index].Name.Split('\')
        $CLSID = $keysplit[$keysplit.Count - 1]
        $dir_name = "CLSID$index.$CLSID"
        New-Item -Path "$saved_directory\$dir_name" -ItemType Directory
    }
    
    Pop-Location
    After running it you get a folder called Shortcuts on your desktop with a few thousand other folders inside. If you ran the script you can see that there are quite a few of these that will actually open various things including different sections of the Control Panel, the "This PC" shortcut and even the recycle bin.
    2016-02-09_17-01-18.
     
    kemical and Josephur like this.

Share This Page

Loading...