Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Remove-WindowsPackage

Remove-WindowsPackage - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Removes a package from a Windows image.

Remove-WindowsPackage [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart [<SwitchParameter>]] [-PackageName <String
>] [-PackagePath <String>] [-ScratchDirectory <String>] [-SystemDrive <String>] [-WindowsDirectory <String>] -Online [<
SwitchParameter>] [<CommonParameters>]
Remove-WindowsPackage [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart [<SwitchParameter>]] [-PackageName <String
>] [-PackagePath <String>] [-ScratchDirectory <String>] [-SystemDrive <String>] [-WindowsDirectory <String>] -Path <Str
ing> [<CommonParameters>]

The Remove-WindowsPackage cmdlet removes a specified .cab file package from the image. Only .cab files can be specified
. You cannot use this command to remove .msu files.

Using this command to remove a package from an offline image will not reduce the image size.