Get-NetIPConfiguration

Get-NetIPConfiguration

Gets IP network configuration.

구문

Parameter Set: Alias
Get-NetIPConfiguration [[-InterfaceAlias] <String> ] [-CimSession <CimSession> ] [-Detailed] [ <CommonParameters>]

Parameter Set: All
Get-NetIPConfiguration -All [-CimSession <CimSession> ] [-Detailed] [ <CommonParameters>]

Parameter Set: Index
Get-NetIPConfiguration -InterfaceIndex <Int32> [-CimSession <CimSession> ] [-Detailed] [ <CommonParameters>]

자세한 설명

The Get-NetIPConfiguration cmdlet gets network configuration, including usable interfaces, IP addresses and DNS servers.

If you do not specify any parameters, this cmdlet gets IP configuration properties for all non-virtual connected interfaces on a computer.

매개 변수

-All

Indicates that the cmdlet retrieves the IP configuration properties for all of the interfaces on a computer, including virtual interfaces, loopback interfaces, and disconnected interfaces.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-CimSession<CimSession>

원격 세션에서 또는 원격 컴퓨터에서 cmdlet을 실행합니다. New-CimSession 또는 Get-CimSession cmdlet의 출력과 같은 컴퓨터 이름이나 세션 개체를 입력합니다. 기본값은 로컬 컴퓨터의 현재 세션입니다.

별칭

PSComputerName,ComputerName

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Detailed

Indicates that the cmdlet retrieves additional interface and computer configuration information, including the computer name, link layer address, network profile, MTU length, and DHCP status.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-InterfaceAlias<String>

Specifies an alias of a network interface. The cmdlet gets an IP configuration that matches the alias.

별칭

ifAlias

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-InterfaceIndex<Int32>

Specifies an index of a network interface. The cmdlet gets an IP configuration that matches the index.

별칭

ifIndex

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • None

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • None

예제

Example 1: Get the IP configuration

This command gets IP configuration information. When this cmdlet is run without parameters, it gets the IP configuration information for all of the non-virtual connected interfaces on the computer.

PS C:\> Get-NetIPConfiguration

Example 2: Get all IP configuration details

This command gets the IP configuration information for all of the interfaces on the computer, including virtual interfaces, loopback interfaces, and disconnected interfaces.

PS C:\> Get-NetIPConfiguration -All

Example 3: Get the IP configuration information with a common parameter

This command gets IP configuration information. By using the Verbose parameter, the networking cmdlets are shown to gather and format the information displayed in this cmdlet.

PS C:\> Get-NetIPConfiguration -Verbose

Example 4: Get the IP configuration by interface index

This command gets the IP configuration information for the interface at the index 12.

PS C:\> Get-NetIPConfiguration –InterfaceIndex 12

Example 5: Get the IP configuration from pipeline input

This command gets the IP address information, including the prefix length.

PS C:\> Get-NetIPConfiguration | Get-NetIPAddress

관련 항목

Get-DNSClientServerAddress

Get-NetAdapter

Get-NetIPAddress

Get-NetIPInterface

Get-NetRoute