You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ManagedDevices/Readme.md
+88Lines changed: 88 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -277,3 +277,91 @@ This function is used to get all managed devices from the Intune Service.
277
277
```PowerShell
278
278
Get-ManagedDevices
279
279
```
280
+
281
+
### 8. Win10_PrimaryUser_Get.ps1
282
+
This script returns the Primary user of an Intune managed Windows 10 device when provided a device name and it will also the Registered Owner and Registered Users on the associated Azure AD device object.
283
+
284
+
##### Example usage
285
+
```
286
+
# Gets all win10 devices and outputs Intune Primary User, Registered Owner and Registered User
287
+
.\Win10_PrimaryUser_Get.ps1
288
+
289
+
# Get specific Win10 device and outputs Intune Primary User, Registered Owner and Registered User
0 commit comments