Skip to content

Commit 9dea56f

Browse files
authored
Merge pull request #101042 from sergiopadure/patch-1
Updated Get-MSOLDevice with Get-MgDevice
2 parents 9243e6d + 1ff29de commit 9dea56f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/active-directory/enterprise-users/groups-dynamic-membership.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,10 @@ You can also create a rule that selects device objects for membership in a group
379379
> [!NOTE]
380380
> systemlabels is a read-only attribute that cannot be set with Intune.
381381
>
382-
> For Windows 10, the correct format of the deviceOSVersion attribute is as follows: (device.deviceOSVersion -startsWith "10.0.1"). The formatting can be validated with the Get-MsolDevice PowerShell cmdlet.
382+
> For Windows 10, the correct format of the deviceOSVersion attribute is as follows: (device.deviceOSVersion -startsWith "10.0.1"). The formatting can be validated with the Get-MgDevice PowerShell cmdlet:
383+
> ```
384+
> Get-MgDevice -Search "displayName:YourMachineNameHere" -ConsistencyLevel eventual | Select-Object -ExpandProperty 'OperatingSystemVersion'
385+
> ```
383386
384387
The following device attributes can be used.
385388

0 commit comments

Comments
 (0)