Share via


How to Remove a Package From Server Core for Windows Server 2008

6/22/2010

Unlike in a full installation of Windows Server, on Server Core you can remove packages to free disk space and to ensure that an Administrator cannot add a role or feature, or otherwise change the function of your server appliance. For information about packages that you can remove, see Removable Packages for Server Core for Windows Server 2008.

Important

Package removal is a one-way operation. After you remove a server role or feature, you cannot restore it. If you realize later that you need the server role or feature that you removed, you must reinstall the operating system.

To remove a package from Server Core for Windows Server 2008

  1. Run pkgmgr /up:<PackageToRemove>.

    You can run this command several times if you want to remove multiple packages.

  2. Restart the computer.

  3. Wait approximately 30 minutes for disk cleanup to occur.

    Notice that the amount of available disk space has changed as a result of removing the server role or feature. When disk space has been freed, the oclist command no longer shows the server role or feature as available, and an error occurs when you attempt to install it by using ocsetup.

See Also

Tasks

How to Remove a Package From Server Core for Windows Server 2008 R2