您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Set-AzureADDevice

Updates a device.

Syntax

Set-AzureADDevice
   -ObjectId <String>
   [-AccountEnabled <Boolean>]
   [-DeviceOSType <String>]
   [-DeviceOSVersion <String>]
   [-DisplayName <String>]
   [-IsCompliant <Boolean>]
   [-IsManaged <Boolean>]
   [<CommonParameters>]

Description

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

Note

DeviceOSType and DeviceOSVersion are configured during registration and should be updated by MDM apps.

IsCompliant and IsManaged should only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. These are used by conditional access policies.

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.

Parameters

-AccountEnabled

Indicates whether the account is enabled.

Type:Boolean
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
-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
-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