Set-PcsvDeviceNetworkConfiguration

適用対象: Windows 10 Technical Preview, Windows Server Technical Preview

Set-PcsvDeviceNetworkConfiguration

Changes the network configuration of a PCSV device.

構文

Parameter Set: ByComputerName
Set-PcsvDeviceNetworkConfiguration [-TargetAddress] <String> [-Credential] <PSCredential> [-ManagementProtocol] <ManagementProtocol> {WSMan | IPMI} [[-Port] <UInt16> ] [-Authentication <Authentication> {Default | Basic | Digest} ] [-CimSession <CimSession[]> ] [-IPv4Address <String> ] [-IPv4DefaultGateway <String> ] [-IPv4SubnetMask <String> ] [-PassThru] [-SkipCACheck] [-SkipCNCheck] [-SkipRevocationCheck] [-ThrottleLimit <Int32> ] [-TimeoutSec <UInt32> ] [-UseSSL] [-IPv4AddressOrigin] <PossibleIPv4Origins> {Static | DHCP} [ <CommonParameters>]

Parameter Set: ByNoConnectionParams
Set-PcsvDeviceNetworkConfiguration [-CimSession <CimSession[]> ] [-IPv4Address <String> ] [-IPv4DefaultGateway <String> ] [-IPv4SubnetMask <String> ] [-PassThru] [-ThrottleLimit <Int32> ] [-TimeoutSec <UInt32> ] [-IPv4AddressOrigin] <PossibleIPv4Origins> {Static | DHCP} [ <CommonParameters>]

Parameter Set: InputObject (cdxml)
Set-PcsvDeviceNetworkConfiguration [-CimSession <CimSession[]> ] [-IPv4Address <String> ] [-IPv4DefaultGateway <String> ] [-IPv4SubnetMask <String> ] [-PassThru] [-ThrottleLimit <Int32> ] [-IPv4AddressOrigin] <PossibleIPv4Origins> {Static | DHCP} [ <CommonParameters>]

詳細説明

The Set-PcsvDeviceNetworkConfiguration cmdlet changes the network configuration of a Physical Computer System View (PCSV) device. You can configure the network settings of a device statically or dynamically, by using the DHCP service. If you specify a static network configuration, you must specify the IP address, subnet mask, and default gateway. This cmdlet currently supports devices that use the Intelligent Platform Management Interface (IPMI) protocol. Changing the network configuration disrupts the out-of-band session, and, therefore, this cmdlet can only be run on an in-band connection. To use with an in-band connection, you must have elevated privileges.

パラメーター

-Authentication<Authentication>

Specifies an authentication method to use for devices managed by WS-Management. Do not specify this parameter for devices managed by using IPMI. このパラメーターに指定できる値は、次のとおりです。

-- Basic
-- Digest
-- Default

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。コンピューター名またはセッション オブジェクト (New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など) を入力します。既定値は、ローカル コンピューター上の現在のセッションです。

Aliases

Session

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Credential<PSCredential>

Specifies a PSCredential object based on a user name and password. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. For IPMI devices, specify credentials that correspond to a user with Administrator privileges on the device.

Aliases

none

必須/オプション

true

位置

3

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-IPv4Address<String>

Specifies an IPv4 address for the PCSV device.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-IPv4AddressOrigin<PossibleIPv4Origins>

Specifies how the IP address is acquired. このパラメーターに指定できる値は、次のとおりです。

-- Static
-- DHCP

Aliases

none

必須/オプション

true

位置

3002

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-IPv4DefaultGateway<String>

Specifies an IPv4 default gateway for the PCSV device.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-IPv4SubnetMask<String>

Specifies an IPv4 subnet mask for the PCSV device.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-ManagementProtocol<ManagementProtocol>

Specifies a management protocol used to communicate with a device. このパラメーターに指定できる値は、次のとおりです。

-- WSMAN
-- IPMI

This cmdlet currently supports only devices that use the IPMI protocol.

Aliases

MP

必須/オプション

true

位置

4

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-PassThru

作業中の項目を表すオブジェクトを返します。既定では、このコマンドレットから出力は生成されません。

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-Port<UInt16>

Specifies a port on the remote computer to use for the management connection. If you do not specify a port, the cmdlet uses the following default ports:

-- IPMI and WSMAN over HTTP. Port 623.
-- WSMAN over HTTPS. Port 664.

Aliases

none

必須/オプション

false

位置

5

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-SkipCACheck

Indicates that the client connects by using HTTPS without validating that a trusted certification authority (CA) signed the server certificate. Do not specify this parameter if you specify a value of IPMI for the ManagmentProtocol parameter.

Do not specify this parameter unless you can establish trust in another way, such as if the remote computer is part of a network that is physically secure and isolated, or if the remote computer is a trusted host in a Windows Remote Management (WinRM) configuration.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-SkipCNCheck

Indicates that the certificate common name (CN) of the server does not need to match the host name of the server. Do not specify this parameter if you specify a value of IPMI for the ManagmentProtocol parameter.

Specify this parameter only for managing devices by using WSMAN over HTTPS. Be sure to specify this parameter only for trusted computers.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-SkipRevocationCheck

Indicates that the cmdlet skips the revocation check of server certificates.

Be sure to specify this parameter only for trusted computers.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-TargetAddress<String>

Specifies the name or IP address of the remote hardware device.

Aliases

CN,ComputerName,IpAddress

必須/オプション

true

位置

2

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-ThrottleLimit<Int32>

コマンドレットを実行する際に確立できる同時実行操作の最大数を指定します。このパラメーターを省略するか、値 0 を入力した場合、コンピューター上で実行されている CIM コマンドレットの数に基づいて、コマンドレットに最適なスロットル制限が Windows PowerShell® によって計算されます。スロットル制限は、セッションやコンピューターではなく、現在のコマンドレットにのみ適用されます。

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-TimeoutSec<UInt32>

Specifies how long to wait, in seconds, for a response from the remote hardware device. After this period, the cmdlet abandons the connection attempt.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

-UseSSL

Indicates that the server connects to the target computer by using SSL. WSMAN encrypts all content transmitted over the network. Specify this parameter to use the additional protection of HTTPS instead of HTTP. If you specify this parameter and SSL is not available on the connection port, the command fails.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

true(ByPropertyName)

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

  • Microsoft.Management.Infrastructure.CimInstance, Microsoft.Management.Infrastructure.CimInstance#root/Microsoft/Windows/HardwareManagement/MSFT_PCSVDevice

    This cmdlet returns a PCSV device object, if you specify the PassThru parameter.

使用例

Example 1: Configure network settings dynamically

This command configures network settings for the PCSV device. The DHCP service updates the IP address, subnet mask and default gateway.

PS C:\> Set-PcsvDeviceNetworkConfiguration -IPv4AddressOrigin DHCP

Example 2: Configure network settings statically

This command configures network settings for the PCSV device. The command specifies the IP address, subnet mask, and default gateway for the device.

PS C:\> Set-PcsvDeviceNetworkConfiguration -IPv4AddressOrigin Static -IPv4Address "10.0.1.2" -IPv4DefaultGateway "10.0.0.1" -IPv4SubnetMask "255.255.0.0"

関連項目

Get-PcsvDevice

Set-PcsvDeviceBootConfiguration