语法 - 更新
Set-PlaceDevice
[-ID]
[-DeviceId]
[-DisplayName]
[-Description]
[-MACAddress]
[-Manufacturer]
[-IPV4Address]
[-IPV6Address]
[-PlaceId]
[-Tags]
[-Sensors]
说明
BSet-PlaceDevice cmdlet 基于提供的 ID 覆盖现有的放置设备属性。
示例
示例 1
汇报现有放置设备的所有属性。
Set-PlaceDevice -Id b8a9ad1c-a90f-4e1a-bad2-1720b8e58187 -DeviceId "contoso_7D6816" -DisplayName "Contoso 7D6816 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"})
参数
-Id
放置设备的 ID。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | True |
-DeviceId
用户定义设备的 ID。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | True |
-DisplayName
设备的名称。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | False |
-描述
设备的说明。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | False |
-MACAddress
制造商提供的设备的 MAC 地址。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | False |
-制造者
设备的制造商名称。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | True |
-IPV4Address
设备的 IPV4 地址。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | False |
-IPV6Address
设备的 IPV6 地址。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | False |
-PlaceId
与设备关联的Microsoft Places) 中放置 (的 ID。
| 属性 | 说明 |
|---|---|
| 类型: | Guid 字符串 |
| 必需: | False |
-标签
用于筛选或标识设备的字符串。
| 属性 | 说明 |
|---|---|
| 类型: | String |
| 必需: | False |
-传感器
与设备关联的 Sensor 的属性。
| 属性 | 说明 |
|---|---|
| 类型: | MicrosoftPlaces.PlacesDevices.Sensor |
| 必需: | True |