Skip to content

Commit 9b98717

Browse files
authored
Updated Get-MSOLDevice with Get-MgDevice
Following the deprecation of the MSOL and AzureAD modules, commands from those modules have to be updated with their corresponding MgGraph ones wherever possible
1 parent 38a5980 commit 9b98717

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)