How can you remove Tenant ID(Autopilot MDM) from computers?

J McBryde 21 Reputation points
2022-02-25T20:21:01.483+00:00

Here's the scenario. Our company was purchased by another Parent company and now we've taken full control of our Infrastructure. While with the former company we had laptops on lease from HP, it is now time to return those laptops but we can't unenroll them from Intune to wipe them. The former company claims that the laptops are not tied to their Tenant ID and can't help us. The laptops are also not tied to our Tenant ID. My question is, how do I remove a Tenant by Powershell, if possible? Or how can I can find the company tied to the Tenant ID where these laptops are connected? Any suggestions would be helpful

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

Accepted answer
  1. Anonymous
    2022-03-02T17:10:53.837+00:00

    I've run that command and checked Access work or school. It's not joined anywhere. I found the solution here: https://learn.microsoft.com/en-us/troubleshoot/mem/intune/import-windows-autopilot-device-csv-files-errors.

    If the device record doesn't exist in Microsoft Store for Business or Intune, you might require assistance from Microsoft Support to remove the device record. In this case, collect the following information, and then create a service request by following the steps in How to get support in Microsoft Endpoint Manager admin center:

    Device CSV: A copy of the device CSV file that generates the error.  
    
    Proof of ownership: Typically, this is a bill of sale or an invoice in PDF format.  
    
    Important  
    
    Microsoft Support must verify ownership of the device before the device record can be removed. Therefore, the following requirements must be met:  
        The document must be in its original form. Screenshots are not accepted.  
        The serial number, chassis ID, or other unique identifier must be present in the document. For some vendors, you may have to request additional details about the purchased device to see this information.  
        Your company name must appear in the document.  
    
    Diagnostic logs:  
    
    To collect the logs, log on to the device, and then run the following command:  
    Console  
    
    Mdmdiagnosticstool.exe -area Autopilot -cab c:\out.cab  
    
    The Out.cab file contains important diagnostic data that can help you to troubleshoot your issue.  
    

    Note

    These files can be attached to the service request when you create the request.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Nick Hogarth 3,521 Reputation points Volunteer Moderator
    2022-02-27T21:46:22.64+00:00

    If you login to the device and from command prompt run "dsregcmd /status" you can get some info to see if the device is enrolled into Intune and Hybrid Azure AD Joined.

    0 comments No comments

  2. Lu Dai-MSFT 28,501 Reputation points
    2022-02-28T00:58:08.457+00:00

    @J McBryde Thanks for posting in our Q&A. From your description, did you mean that you want to know which tenant manage the devices? If there is any misunderstanding, please correct me.

    To clarify this issue, we appreciate your help to check some information:

    1. Please try to check if there is any connect under Settings > Accounts > Access work or school.
      178246-image.png
    2. As Nick said, run "dsregcmd /status" in the device. We will find the tenant name and tenantId under Tenant Details.
      178261-image.png

    Hope it will help.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.


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.