Remove-SCStaticIPAddressPool
Hiermee verwijdert u een groep met statische IP-adressen.
Syntax
Remove-SCStaticIPAddressPool
[-VMMServer <ServerConnection>]
[-StaticIPAddressPool] <StaticIPAddressPool>
[-Force]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Description
Met de cmdlet Remove-SCStaticIPAddressPool wordt een statische IP-adresgroep (Virtual Machine Manager) (VMM) verwijderd.
Voorbeelden
Voorbeeld 1: Een groep met vaste IP-adressen verwijderen voor een opgegeven subnet
PS C:\> $HostGroup = Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup02\Production" }
PS C:\> $IPPool = Get-SCStaticIPAddressPool -IPv4 -Subnet "10.0.0.0/24" -VMHostGroup $Hostgroup -Name "Production IP Address Pool"
PS C:\> Remove-SCStaticIPAddressPool -StaticIPAddressPool $IPPool
Met de eerste opdracht wordt de hostgroep met het pad Alle hosts\HostGroup02\Production opgeslagen en wordt die groep vervolgens opgeslagen in de $HostGroup variabele.
Met de tweede opdracht wordt de statische adresgroep met de naam IP-adresgroep productie voor de hostgroep die is opgeslagen in de $HostGroup variabele, ophaalt met behulp van het IPv4-adres voor het opgegeven subnet. Als overname is ingeschakeld, haalt deze cmdlet ook de bovenliggende hostgroep op. Met de opdracht wordt de pool opgeslagen in de variabele $IPPool.
Met de laatste opdracht wordt de statische adresgroep verwijderd die is opgeslagen in $IPPool.
Parameters
-Confirm
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Dwingt de opdracht uit te voeren zonder te vragen om bevestiging van de gebruiker.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Hiermee geeft u een variabele op waarin de voortgang van de taak wordt bijgehouden en opgeslagen.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUser
Hiermee geeft u een gebruikersnaam. Deze cmdlet werkt namens de gebruiker die met deze parameter wordt opgegeven.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUserRole
Hiermee geeft u een gebruikersrol op. Gebruik de cmdlet Get-SCUserRole om een gebruikersrol te verkrijgen. Deze cmdlet werkt namens de gebruikersrol die met deze parameter wordt opgegeven.
Type: | UserRole |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Hiermee geeft u de id op van de tip prestatie- en resourceoptimalisatie (PRO-tip) die deze actie heeft geactiveerd. Met deze parameter kunt u PRO-tips controleren.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Geeft aan dat de taak asynchroon wordt uitgevoerd, zodat het besturingselement onmiddellijk terugkeert naar de opdrachtshell.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StaticIPAddressPool
Hiermee geeft u de statische IP-adresgroep op die door deze cmdlet wordt verwijderd.
Type: | StaticIPAddressPool |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Hiermee geeft u een VMM-serverobject op.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Uitvoerwaarden
StaticIPAddressPool
Deze cmdlet retourneert een StaticIPAddressPool-object .