Quick tip about PPKG files

I’ve been playing with the Windows 10 Deployment and Management Lab Kit Microsoft provided and applying provisioning packages (PPKG) files in chapter 6.

I’ve found the following documentation about applying provisioning packages on MSDN where I’ve learned that you can work with PPKG in an Offline image using DISM and that there’s an UI that looks like this:

ppk-UI-01

Unfortunately, you cannot list installed provisioning packages from an online image 😦
PowerShell to the rescue! Please, fix this shortcoming!

dir C:\ProgramData\Microsoft\Provisioning\ -Recurse -Include  customizations.xml | 
ForEach-Object {
 $x = [xml](Get-Content $_.FullName) ;
 if ($x.WindowsCustomizations.PackageConfig.OwnerType -ne 'Microsoft') {
  $x.WindowsCustomizations.PackageConfig
 }
} | Select ID,Name,Version,OwnerType,Rank | Format-Table -AutoSize

ppk-xml-parsing

Nice, I was able to grab the Package ID, its version, its name but not the ‘Author’ if you compare the output of my PowerShell command and the ‘Details’ UI below
(I’ve absolutely no clue where it’s stored. If you know, please share this information with us 🙂 )
ppk-UI-02

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s