Export (0) Print
Expand All

Remove Superseded Packages Using Package Scanner (Standard 7 SP1)

7/8/2014

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.60).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.60).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, type the following at a command prompt to scan the currently running operating system for any superseded packages:

    pkgscn /Find-Scavenge
    
Ff794411.note(en-US,WinEmbedded.60).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 a mounted offline Standard 7 image and want to scan the mounted image for superseded packages, type the following at a command prompt, replacing <mount_directory> with the full path of the directory your image is mounted to:
    pkgscn /Find-Scavenge /Image: <mount_directory>
    

  • If you are running Package Scanner on the device you want to scan and want to scan the running operating system for superseded packages, then create an answer file to remove those packages, type the following at a command prompt, replacing <answer_file> with the full path of the answer file you want to create:

    pkgscn /Find-Scavenge /ConfigSetDir: <answer_file>
    
  • If you are running Package Scanner from another system on a mounted offline Standard 7 image, type the following at a command prompt, replacing <mount_directory> with the full path of the directory your image is mounted as and <answer_file> with the full path of the answer file you want to create:

    pkgscn /Find-Scavenge /Image: <mount_directory> /ConfigSetDir: <answer_file>
    
Show:
© 2014 Microsoft