Remove Superseded Packages Using Package Scanner

3/21/2011

Package Scanner is a tool that allows you to examine a running installation of Windows Embedded Standard 7, or an offline Standard 7 image, and identify any superseded packages present in that image. This is important because disk space is often limited and continued maintenance leaves older versions of updated binaries on the disk. Removing these superseded packages can free up disk space.

For a package to become superseded, all components within that package must become either staged or superseded.

  • You have access either to the device currently running Standard 7 that you want to scan, or you have 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.
Ff794411.note(en-US,WinEmbedded.1001).gifNote:
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.
Ff794411.note(en-US,WinEmbedded.1001).gifNote:
Superseded versions of the Servicing Stack component in Standard 7 Service Pack 1 cannot be removed, even after installing a newer version of the component.

  • If you are running Package Scanner on the device you want to scan, this example will scan the currently running operating system for any superseded packages:

    pkgscn /Find-Scavenge
    
Ff794411.note(en-US,WinEmbedded.1001).gifNote:
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 for any superseded packages:
    pkgscn /Find-Scavenge /Image:d:\mount
    

  • 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 called AutoUnattend.xml that can be used to remove the superseded packages in the directory c:\answerfile:

    pkgscn /Find-Scavenge /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 mounted image and create an answer file called AutoUnattend.xml in the directory c:\answerfile that can be used to remove the superseded packages:

    pkgscn /Find-Scavenge /Image:d:\mount /ConfigSetDir:c:\answerfile
    
Show: