Created
January 2, 2020 13:36
-
-
Save junecastillote/5ebbd7aa0cd5ca6e6b0acb437290de2a to your computer and use it in GitHub Desktop.
List all Shell Application Namespace in Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ShellApp = New-Object -ComObject ShellApp.Application # initialize the COM application object | |
foreach($i in $(0..100)){ # from 0 to 100. The highest number is just a guess. | |
$ShellApp.namespace($i) | Where-Object {$_.Title} | # try the namespace, and return only if there's value in title | |
Select-Object ` | |
@{n="Dec";e={$i}}, ` # Base 10 (Dec) namespace index | |
@{n="Hex";e={"0x" + ('{0:X}' -f $i)}}, ` # Base 16 (Hex) namespace index | |
Title, ` | |
@{N="Path";e={$_.Self.Path} } # Folder path | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment