Share via


List Installed Packages Using Package Scanner

3/21/2011

Package Scanner is a tool that allows you to list all installed packages on a running installation of Windows Embedded Standard 7 or an offline Standard 7 image. This includes packages originally configured in Image Configuration Editor or Image Builder Wizard, as well as packages added later with Deployment Image Servicing and Management (DISM) and any updates that have been applied.

This list can also be saved as an answer file to serve as a record of the image contents or can be opened in Image Configuration Editor to build more images with the same packages and updates as the scanned image.

Note

Any settings that were configured in the original answer file, as well as any third-party files you added, will not be included in the list of installed packages or the answer file generated by Package Scanner.

Hardware and Software Assumptions

  • You have access either to the device currently running Standard 7 that you want to scan, or to a Windows Imaging WIM file containing a Standard 7 image you want to scan and have mounted that WIM file to access its contents.
  • You have installed Standard 7 Toolkit on a development computer.

Note

If you need to access Package Scanner on a network share or on a device without network capability, the correct files and directory structure are required for Package Scanner to function. For more information, see CopyPkgScn Command-Line Options.

List Installed Packages by Using the /Get-Packages Command

  • If you are running Package Scanner on the device you want to scan, the following example will scan the currently running operating system:

    pkgscn /Get-Packages
    

Note

When running Package Scanner, it is assumed that your Windows root directory is \Windows, but this can be overridden by using the /image parameter. For more information, see Package Scanner Technical Reference.

  • If you are running Package Scanner from another system on an offline Standard 7 image mounted as d:\mount, the following example will scan the mounted image:

    pkgscn /Get-Packages /Image:d:\mount
    

Create an Answer File by Using the /Get-Packages Command

  • If you are running Package Scanner on the device you want to scan, the following example will scan the currently running operating system and create an answer file based on the installed packages called AutoUnattend.xml in the directory c:\answerfile:

    pkgscn /Get-Packages /ConfigSetDir:c:\answerfile
    
  • If you are running Package Scanner from another system on an offline Standard 7 image mounted as d:\mount, the following example will scan the image and create an answer file based on the installed packages called AutoUnattend.xml in the directory c:\answerfile:

    pkgscn /Get-Packages /Image:d:\mount /ConfigSetDir:c:\answerfile
    

See Also

Concepts

Package Scanner Technical Reference
CopyPkgScn Command-Line Options
Answer Files in Windows Embedded Standard 7
Deployment Image Servicing and Management Command-Line Options

Other Resources

ImageX Technical Reference