powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-EsxSoftwarePackage



NAME
Remove-EsxSoftwarePackage

SYNOPSIS


SYNTAX
Remove-EsxSoftwarePackage [-ImageProfile] [-SoftwarePackage] [-Force] [-WarningA
ction ] [-WarningVariable ] [-WhatIf] [-Confirm] []


DESCRIPTION
Removes existing packages from an image profile. The output of this cmdlet is an image profile object that you can
pipe into any other cmdlet taking image profiles as input.


You cannot modify an image profile if its ReadOnly property is true.


ImageBuilder runs the modified image profile through all image profile validation tests. The modified image profil
e must have at least a boot kernel so that it can boot. You cannot remove a package if another package depends on i
t.


PARAMETERS
-ImageProfile
(pipeline input, prompt) Specifies the image profile to edit.
Takes one of the following forms:
*Name of an image profile, as displayed in the Name column of Get-EsxImageProfile, or the Name property of any
ImageProfile object
*ImageProfile object

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-SoftwarePackage
List of software packages to remove from the profile. Specify packages that exist in the profiel. You can speci
fy one or more SoftwarePackage objects, or strings representing package names.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Force


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




---------- Example 1 ----------

C:\PS>Remove-EsxSoftwarePackage -ImageProfile "My custom profile" -SoftwarePackage foo


Remove package foo from my custom profile:


RELATED LINKS