Last active
December 16, 2019 04:08
-
-
Save Evilcry/4540695247859c7acf921e0481bed496 to your computer and use it in GitHub Desktop.
Eumerate COM objects with elevation ON
This file contains hidden or 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
$path = "REGISTRY::HKEY_CLASSES_ROOT\CLSID\" | |
Get-ChildItem -Path $path -Recurse | foreach { | |
$CurrentKey = Get-ItemProperty -Path $_.PsPath | |
if ($CurrentKey.PSChildName -match "Elevation") { | |
$details = Get-ItemProperty -Path $CurrentKey.PSParentPath | |
Out-File -FilePath ".\elevation.txt" -InputObject $details -Append | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment