All things SMS, System Center Configuration Manager, Active Directory, Group Policy, Virtualization, Security, Gadgets, Technology, and the Daily Thoughts of an SMS Engineer named Anthony Clendenen.

The Daily Ramblings of an SMS Engineer

Windows Automated Installation Kit - Removing Packages

January 09, 2008

I got a question today regarding the ability of pkgmgr to uninstall a package.  I think everyone knows that you can add packages with WAIK in the latest version but you can also remove or update packages as well as the built in Windows features. 

If you want to remove a package from a Vista image (WIM) you can use pkgmgr.exe to accomplish this in a couple ways. 

start /w pkgmgr.exe /up /m:c:\packages

where /m: is used to specify the folder and path to your packages. 

start /w pkgmgr.exe /up /p:"package name"

where "package name" is the name of the package

If you want to remove or disable a feature in your image you can also use pkgmgr.

start /w pkgmgr.exe /uu:feature_name

where feature_name is the command line name of the Microsoft-Windows-Foundation Package feature, e.g. Games would be specified by using InboxGames. 

You can obtain a list of the features and their command line equivalent here.

If the feature is not included in the Microsoft-Windows-Foundation Package (MWFP) then you will need to use the /p switch to specify the name of the package like so.

start /w pkgmgr.exe /uu: /p:"package name"

where "package name" is the name of the package that is not part of the MWFP.

If you have multiple packages or features to remove you can do this all in a single command line just use the semicolon to separate the names of the packages, paths, or feature names.

Here is a list of all command line options:

pkgmgr.exe ConfigMgr.com

[/?] [/h] [/help]

[/l:file_name]

[/ip]

[/iu:Windows_feature_name]

[/m:package_directory]

[/n:answer_file]

[/norestart]

[/o:system_drive_path;offline_Windows_directory_path]

[/p:package_name]

[/quiet]

[/s:sandbox_directory]

[/up:package_name]

[/uu:Windows_feature_name]

 

Full details here Windows Automated Installation Kit (Windows AIK)

 

Regards,
Anthony

Anthony Clendenen | Solutions Engineer | 1E


image002

http://configmgr.com

© 2008 Anthony Clendenen

 

I Recommend These Books!
SMS 2003 Administrator's Reference: Systems Management Server 2003SMS 2003 Recipes: A Problem-Solution Approach  -  Microsoft SMS Installer (Book/CD-ROM package)  -  Pro SMS 2003  -  Professional MOM 2005, SMS 2003, and WSUS  -  Start to Finish Guide to Distributing Software With Systems Management Server 2003  -  Microsoft Systems Management Server 2003 - Administrator's Companion


 

Filed under: , , ,

Comments