Remove-IntunePrimaryUser

1.1

Clears (removes) the Intune Primary User assignment from devices.

Installation Options

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

Install-Script -Name Remove-IntunePrimaryUser

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

Package Details

Author(s)

  • Alex Marrero

Tags

Intune

Dependencies

This script has no dependencies.

Release Notes

1.1 - Fixed module version alignment, try/finally structure, and added ScanAllDevices support.

FileList

Version History

Version Downloads Last updated
1.1 (current version) 11 4/28/2026