Initial commit
This commit is contained in:
23
Function_MW-ShowUEVPKGXRegistry.ps1
Normal file
23
Function_MW-ShowUEVPKGXRegistry.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
FUNCTION MW-ShowUEVPKGXRegistry {
|
||||
<#
|
||||
This functions shows the actual registry values in a PKGX file (UEV)
|
||||
The parameter is the path to the PKGX file
|
||||
Example
|
||||
|
||||
MW-ShowPKGXRegistry "C:\UEV\Join\SettingsPackages\MicrosoftWordpad6\MicrosoftWordpad6.pkgx"
|
||||
#>
|
||||
|
||||
|
||||
Param ($PKGXFile)
|
||||
$stream = Export-UevPackage $PKGXFile
|
||||
$data = $stream.split("`n")
|
||||
$matches = $null
|
||||
foreach ($line in $data){
|
||||
if ($line -match 'HKCU(.*)" Action="(.*)">(.*)<'){
|
||||
Write-host "REgkey: $($matches[1]) `t`t $($matches[3])"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} #EndFUNCTION MW-ShowUEVPKGXRegistry
|
||||
Reference in New Issue
Block a user