Set-GroupByPrimaryUser

1.0

Synchronizes devices in the target device group based on the primary users in the source user group.
- Adds missing devices.
- Removes devices that no longer belong.
- Updates the group description with the device count.
- Allows filtering by OS type and ownership.


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Set-GroupByPrimaryUser -RequiredVersion 1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

2025 Florian Salzmann. GPL-3.0 license.

Package Details

Author(s)

  • Florian Salzmann

Tags

PowerShell Groupmanagement Intune MicrosoftGraph Entra EntraID

Dependencies

This script has no dependencies.

Release Notes

2025-02-26, 1.0:    Original published version.

FileList

Version History

Version Downloads Last updated
1.1 12 3/3/2025
1.0 (current version) 215 2/26/2025