powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-EsxSoftwareDepot



NAME
Remove-EsxSoftwareDepot

SYNOPSIS


SYNTAX
Remove-EsxSoftwareDepot [-SoftwareDepot] [-WarningAction ] [-WarningVariable tring>] []


DESCRIPTION
Disconnects the current PowerCLI session from the specified software depots. Updates the $DefaultSoftwareDepots se
ssion 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.


PARAMETERS
-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 err
or message results.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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


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>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 ----------

C:\PS>$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 ----------

C:\PS>Remove-EsxSoftwareDepot $DefaultSoftwareDepots


Disconnect from all software depots


RELATED LINKS