Forum Discussion

MatthewShulman's avatar
MatthewShulman
Brass Contributor
Feb 15, 2024

Required permissions for get-windowsautopilotinfo to allow enrollment?

I've been trying to create a custom role to allow a user to enroll a system with autopilot but not give them intune administrator permissions.  I've found some articles that go over that by giving certain permissions but even following those I get a write-error when running get-windowsautopilotinfo online. 

 

The error is during the add-autopilotimporteddevice part of the script. 

 

Has anyone been able to get this to work recently?  Any suggestions?

  • rahuljindal-MVP's avatar
    rahuljindal-MVP
    Bronze Contributor

    MatthewShulman, as far as I know Intune Admin role is a pre-req to use Powershell module against Intune graph. You can possibly leverage JIT access against the role and control the enablement through that. 

Resources