Syntax
Remove-EsxSoftwareDepot [-SoftwareDepot] <SoftwareDepot[]> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]Related Commands
Detailed Description
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.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SoftwareDepot | SoftwareDepot[] | (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. | true | true (ByValue, ByPropertyName) | |
WarningAction | ActionPreference | false | false | ||
WarningVariable | String | false | false |
Return Type
Notes
Examples
---------- Example 1 ----------
Add-EsxSoftwareDepot http://www.vmware.com/go/ESXi/patches/ [... do something ...] Remove-EsxSoftwareDepot http://www.vmware.com/go/ESXi/patches/
Connect to a depot, then disconnect from it by URL.
---------- Example 2 ----------
$depot = Add-EsxSoftwareDepot http://www.vmware.com/go/ESXi/patches/ [... 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