Set-PlaceDevice
Syntaxe - Mise à jour
Set-PlaceDevice
[-ID]
[-DeviceId]
[-DisplayName]
[-Description]
[-MACAddress]
[-Manufacturer]
[-IPV4Address]
[-IPV6Address]
[-PlaceId]
[-Tags]
[-Sensors]
Description
BSet-PlaceDevice applet de commande remplace les propriétés d’appareil place existantes en fonction de l’ID fourni.
Exemples
Exemple 1
Mises à jour toutes les propriétés d’un appareil de place existant.
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"})
Paramètres
-Id
ID de l’appareil de place.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Vrai |
-DeviceId
ID défini par l’utilisateur de l’appareil.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Vrai |
-DisplayName
Nom de l’appareil.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Faux |
Description
Description de l’appareil.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Faux |
-MACAddress
Adresse MAC de l’appareil fourni par le fabricant.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Faux |
-Fabricant
Nom du fabricant de l’appareil.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Vrai |
-IPV4Address
Adresse IPV4 de l’appareil.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Faux |
-IPV6Address
Adresse IPV6 de l’appareil.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Faux |
-PlaceId
ID de l’élément Place (en Microsoft Places) associé à l’appareil.
Attribut | Description |
---|---|
Type : | Chaîne guid |
Obligatoire : | Faux |
-Étiquettes
Chaîne utilisée pour filtrer ou identifier l’appareil.
Attribut | Description |
---|---|
Type : | String |
Obligatoire : | Faux |
-Capteurs
Propriétés du capteur associé à l’appareil.
Attribut | Description |
---|---|
Type : | MicrosoftPlaces.PlacesDevices.Sensor |
Obligatoire : | Vrai |