语法
New-PlaceDevice
[-DeviceId]
[-DisplayName]
[-MACAddress]
[-Manufacturer]
[-IPV4Address]
[-IPV6Address]
[-PlaceId]
[-Tags]
[-Sensors]
说明
New-PlaceDevice cmdlet 将新设备属性上传到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。
属性 | 说明 |
---|---|
类型: | 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 |
-SensorId
设备上传感器的用户定义 ID。
属性 | 说明 |
---|---|
类型: | String |
必需: | False |
-SensorType
传感器的类型。
属性 | 说明 |
---|---|
类型: | 枚举 (锁屏提醒/占用) |
必需: | True |