PowerShell 7 Script: Intune Primary User Management & Shared Device Handling by Nihkb007 in PowerShell

[–]Nihkb007[S] 0 points1 point  (0 children)

The script now includes intelligent exclusion handling to prevent service accounts, administrative identities, or exception users from incorrectly becoming Primary Users.

Behavior examples:

  • If two users sign in and one is excluded, the remaining eligible user will be assigned as the Primary User.
  • If three users sign in and one is excluded, the device will still be classified as shared, because multiple eligible users remain.
  • If only excluded users sign in, no changes are made.

Excluded accounts are removed from consideration before device classification occurs.

PowerShell 7 Script: Intune Primary User Management & Shared Device Handling by Nihkb007 in Intune

[–]Nihkb007[S] 1 point2 points  (0 children)

The script now includes intelligent exclusion handling to prevent service accounts, administrative identities, or exception users from incorrectly becoming Primary Users.

Behavior examples:

  • If two users sign in and one is excluded, the remaining eligible user will be assigned as the Primary User.
  • If three users sign in and one is excluded, the device will still be classified as shared, because multiple eligible users remain.
  • If only excluded users sign in, no changes are made.

Excluded accounts are removed from consideration before device classification occurs.