Get-SCIPAddress
Hämtar allokerade statiska och virtuella IP-adresser.
Syntax
Get-SCIPAddress
[-VMMServer <ServerConnection>]
[-All]
[-UnAssigned]
[-Assigned]
[-IsMulticast]
[-Duplicate]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Get-SCIPAddress
[-VMMServer <ServerConnection>]
-StaticIPAddressPool <StaticIPAddressPool>
[-UnAssigned]
[-Assigned]
[-IsMulticast]
[-Duplicate]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Get-SCIPAddress
[-VMMServer <ServerConnection>]
-ID <Guid>
[-UnAssigned]
[-Assigned]
[-IsMulticast]
[-Duplicate]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Get-SCIPAddress
[-VMMServer <ServerConnection>]
-GrantToObjectID <Guid>
[-UnAssigned]
[-Assigned]
[-IsMulticast]
[-Duplicate]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Get-SCIPAddress
[-VMMServer <ServerConnection>]
-IPAddress <String>
[-UnAssigned]
[-Assigned]
[-IsMulticast]
[-Duplicate]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Get-SCIPAddress
[-VMMServer <ServerConnection>]
[-PublicIPAddress]
[-UnAssigned]
[-Assigned]
[-IsMulticast]
[-Duplicate]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Description
Cmdleten Get-SCIPAddress hämtar allokerade statiska IP-adresser och virtuella IP-adresser.
Exempel
Exempel 1: Hämta alla allokerade IP-adresser för en specifik IP-adresspool
PS C:\> $IPAddressPool = Get-SCStaticIPAddressPool -IPv4 -Subnet "10.0.0.0/24"
PS C:\> Get-SCIPAddress -StaticIPAddressPool $IPAddressPool
Det första kommandot hämtar IP-adresspoolobjektet med undernätet 10.0.0.0/24 och lagrar det i variabeln $IPAddressPool.
Det andra kommandot returnerar alla allokerade IP-adresser för IP-adresspoolen som lagras i $IPAddressPool.
Parametrar
-All
Anger att denna cmdlet hämtar alla underordnade objekt oberoende av det överordnade objektet.
Kommandot Get-SCVirtualDiskDrive -All
hämtar till exempel alla virtuella diskenhetsobjekt oavsett det virtuella datorobjekt eller mallobjekt som varje virtuellt diskenhetsobjekt är associerat med.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Assigned
Anger att denna cmdlet hämtar IP-adresser eller MAC-adresser som har allokerats från en adresspool och tilldelats till en resurs.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Duplicate
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GrantToObjectID
Anger ID:t för ett objekt som en allokerad IP-adress eller MAC-adress tilldelas till.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ID
Anger den numeriska identifieraren som en globalt unik identifierare, eller GUID, för ett specifikt objekt.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPAddress
Anger en IPv4- eller IPv6-adress.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IsMulticast
Anger att IP-adressen är en multicast-adress eller att IP-adresspoolen innehåller ett multicast-IP-adressintervall.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUser
Anger ett användarnamn. Den här cmdleten fungerar för användarens räkning som den här parametern anger.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUserRole
Anger en användarroll. Om du vill skaffa en användarroll använder du cmdleten Get-SCUserRole . Den här cmdleten fungerar för den användarroll som den här parametern anger.
Type: | UserRole |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PublicIPAddress
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StaticIPAddressPool
Anger en IP-adresspool som du kan tilldela statiska IP-adresser från.
Type: | StaticIPAddressPool |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-UnAssigned
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
Anger ett VMM-serverobjekt (Virtual Machine Manager).
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Utdata
CloudDRPairingInfoData
Den här cmdleten returnerar ett CloudDRPairingInfoData-objekt .