Update-UnityvCenter

SYNOPSIS

Refresh vCenter hosts.

SYNTAX

Refresh (Default)

Update-UnityvCenter [-session <Object>] [-ID] <String[]> [-Refresh]

RefreshAll

Update-UnityvCenter [-session <Object>] [-ID] <String[]> [-RefreshAll]

DESCRIPTION

Refresh vCenter hosts. You need to have an active session with the array.

EXAMPLES

-------------------------- EXEMPLE 1 --------------------------

Update-UnityvCenter -ID '' -Refresh

Refresh all the hosts managed by this vCenter.

PARAMETERS

-session

Specify an UnitySession Object.

Type: Object
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true})
Accept pipeline input: False
Accept wildcard characters: False

-ID

ID or Object of a vCenter server

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Refresh

'Refresh all the hosts managed by the host container.

Type: SwitchParameter
Parameter Sets: Refresh
Aliases: 

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-RefreshAll

Refresh all known vCenters and ESX servers.

Type: SwitchParameter
Parameter Sets: RefreshAll
Aliases: 

Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES

Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE

https://github.com/equelin/Unity-Powershell