次の方法で共有


New-PlaceDevice

構文

New-PlaceDevice
[-DeviceId]
[-DisplayName]
[-MACAddress]
[-Manufacturer]
[-IPV4Address]
[-IPV6Address]
[-PlaceId]
[-Tags]
[-Sensors] 

説明

New-PlaceDevice コマンドレットは、新しいデバイス プロパティをMicrosoft Placesにアップロードします。

例 1

センサーの種類としてバッジを持つ場所に新しいデバイスを作成します

New-PlaceDevice -DeviceId "contoso_9D6816" -DisplayName "Contoso 9D6816 Device" -Description "Contoso 9D6816 Device" -MACAddress "00:0A:95:9D:68:16" -Manufacturer "Contoso" -IPV4Address "192.168.1.100" -IPV6Address "2001:db8::ff00:42:8329" -PlaceId "acfa3bc0- 2b83-425b-8910-84a0250e9671" -Tags "BuildingA" -Sensors (New-Object MicrosoftPlaces.PlacesDevices.Sensor -Property @{SensorType="badge"})

パラメーター

-DeviceId

デバイスのユーザー定義 ID。

属性 説明
種類: 文字列
必須: はい

-DisplayName

デバイスの名前。

属性 説明
種類: 文字列
必須: False

-Description

デバイスの説明。

属性 説明
種類: 文字列
必須: False

-MACAddress

製造元が提供するデバイスの MAC アドレス。

属性 説明
種類: 文字列
必須: False

-生産者

デバイスの製造元の名前。

属性 説明
種類: 文字列
必須: はい

-IPV4Address

デバイスの IPV4 アドレス。

属性 説明
種類: 文字列
必須: False

-IPV6Address

デバイスの IPV6 アドレス。

属性 説明
種類: 文字列
必須: False

-PlaceId

デバイスに関連付けられている場所 (Microsoft Places) の ID。

属性 説明
種類: Guid 文字列
必須: False

-タグ

デバイスをフィルター処理または識別するために使用される文字列。

属性 説明
種類: 文字列
必須: False

-センサー

デバイスに関連付けられているセンサーのプロパティ。

属性 説明
種類: MicrosoftPlaces.PlacesDevices.Sensor
必須: はい

-SensorId

デバイス上のセンサーのユーザー定義 ID。

属性 説明
種類: 文字列
必須: False

-SensorType

センサーの種類。

属性 説明
種類: Enum (バッジ/占有率)
必須: はい