Set-​Azure​AD​Device

Updates a device.

Syntax

Set-AzureADDevice
   [-AccountEnabled <Boolean>]
   [-AlternativeSecurityIds <System.Collections.Generic.List`1[Microsoft.Open.AzureAD.Model.AlternativeSecurityId]>]
   [-ApproximateLastLogonTimeStamp <DateTime>]
   [-DeviceId <String>]
   [-DeviceMetadata <String>]
   [-DeviceObjectVersion <Int32>]
   [-DeviceOSType <String>]
   [-DeviceOSVersion <String>]
   [-DevicePhysicalIds <System.Collections.Generic.List`1[System.String]>]
   [-DeviceTrustType <String>]
   [-DisplayName <String>]
   [-IsCompliant <Boolean>]
   [-IsManaged <Boolean>]
   -ObjectId <String>
   [<CommonParameters>]

Description

The Set-AzureADDevice cmdlet updates a device in Azure Active Directory (AD).

Examples

Example 1: Update a device

PS C:\>Set-AzureADDevice -ObjectId "99a1915d-298f-42d1-93ae-71646b85e2fa" -DisplayName "My OS/2 computer"

This command updates the specified device.

Required Parameters

-ObjectId

Specifies the object ID of a device in Azure AD.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-AccountEnabled

Indicates whether the account is enabled.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AlternativeSecurityIds

Specifies alternative security IDs.

Type:System.Collections.Generic.List`1[Microsoft.Open.AzureAD.Model.AlternativeSecurityId]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApproximateLastLogonTimeStamp
Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeviceId

Specifies the device ID.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeviceMetadata

The device metadata for this device

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeviceOSType

Specifies the operating system.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeviceOSVersion

Specifies the operating sytem version.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeviceObjectVersion

Specifies the object version of the device.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DevicePhysicalIds

Specifies the physical ID.

Type:System.Collections.Generic.List`1[System.String]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeviceTrustType

The device trust type

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName

Specifies the display name.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsCompliant

Indicates whether the device is compliant.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsManaged

Indicates whether the device is managed.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False