is there any script for re enrolling Intune PC back to Intune

mahesh badri 6 Reputation points
2021-04-02T16:33:17.93+00:00

Hello All,

I have situation that few PCs are removed from Intune and available in Azure AD and still logging by users.
i need to bring it back to Intune.

is there any powershell script to re-enrolling the PC back to Intune.

i do not have Autopilot configured in my environment.

currently i m following manual enrollment by adding work or school account.
looking for some script to Re enroll the PC back to Intune.
please help. Thanks.

Microsoft Security | Intune | Enrollment
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Jason Sandys 31,406 Reputation points Microsoft Employee Moderator
    2021-04-02T19:20:47.787+00:00

    No, there is no supported process (or process that I know of) that can be scripted or otherwise automated to enroll an AAD joined device in Intune (regardless of whether it was previously Intune enrolled or not).

    0 comments No comments

  2. Crystal-MSFT 53,981 Reputation points Microsoft External Staff
    2021-04-05T01:31:23.25+00:00

    @mahesh badri , Research and agree with Jason, I didn't find the PowerShell command to enroll an Azure AD joined device into Intune. Currently, only the method I can think is to manually add it to Access work or school which is the one you are used now.

    Hope it can help.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Zane Rodman 86 Reputation points
    2021-04-07T11:38:31.343+00:00
    1. Powershell leave azure ad.
    2. Use bulk enrolment method using a provision package and powershell to deploy the provision package. Maybe schedule task can achieve this to help automate.

    https://learn.microsoft.com/en-us/mem/intune/enrollment/windows-bulk-enroll

    https://learn.microsoft.com/en-us/powershell/module/provisioning/install-provisioningpackage?view=windowsserver2019-ps

    This is a method I'm thinking of using.

    Make sure to use bulk method for school deployment. Much faster.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.