-
Notifications
You must be signed in to change notification settings - Fork 4
/
GetWMIInfo.reg
14 lines (8 loc) · 1.75 KB
/
GetWMIInfo.reg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\.wim]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\.wim\shell]
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\.wim\shell\GetWimInfo]
@="GetWimInfo"
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\.wim\shell\GetWimInfo\command]
@="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" \"-Command\" \"\"& {Write-Output 'Add-Type -AssemblyName PresentationFramework;[System.Windows.MessageBox]::Show(\"$(Get-WindowsImage -ImagePath \\\"%1\\\" -Index 1 | Format-List * | Out-String)\")' > C:\\ProgramData\\GetWimInfo.ps1; Start-Process powershell.exe -ArgumentList @('-ExecutionPolicy Bypass', '-File C:\\ProgramData\\GetWimInfo.ps1') -Verb RunAs -WindowStyle Hidden}\""