Remove-EsxSoftwareDepot Command | Vmware PowerCLI Reference

Remove-EsxSoftwareDepot

Disconnects the current PowerCLI session from the specified software depots. Updates the $DefaultSoftwareDepots session variable. The depots and their VIBs and image profiles will no longer be available.If you do not specify the -SoftwareDepot parameter, PowerCLI prompts for an answer. You can type in the URL of the depot you wish to disconnect from.

Syntax

Remove-EsxSoftwareDepot
-SoftwareDepot < SoftwareDepot[] >
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
SoftwareDepot SoftwareDepot[] named
  • pipeline
(Pipeline input, prompt) Takes one of the following forms:* URL string of the depot to remove* Single instance of a SoftwareDepot object, as returned by Add-EsxSoftwareDepot* List of SoftwareDepot objects or URL strings The depot must be connected to the session. If you specify a depot that is not connected to the session, an error message results.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

[... do something ...]

Remove-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

Connect to a depot, then disconnect from it by URL.

Example 2

$depot = Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

[... do something ...]

$depot | Remove-EsxSoftwareDepot

Connect to a depot, saving it to a variable, then disconnect from it later. Also an example of pipeline input.

Example 3

Remove-EsxSoftwareDepot $DefaultSoftwareDepots

Disconnect from all software depots

Related Commands

ESXImageProfileAssociation

Associates the specified image profile with the specified ESXi system.

EsxCli

This cmdlet exposes the ESXCLI functionality.

EsxImageProfile

EsxSoftwareDepot

EsxSoftwarePackage

EsxTop

This cmdlet exposes the esxtop functionality.