Can i run onboarding scripts from 2 different tenants on the same machine ?

Francis, Rohit 0 Reputation points
2024-01-23T19:45:42.89+00:00

I have a test machine and a tenant (Lets say tenant abc)

Now, i downloaded onboarding script from the abc tenant . the installation was successful . But, the machine doesn't report the report to MDE portal . This is a network issue .(I'm not worried about this now). But, the sense service is running on the machine and i wanted to remove this . So i ran the offboarding script that i got from tenant abc. Now i get the error :

[Error Id: 70, Error Level: 1] Offboarding script for org xxxx-xxxx-xxxx-xxxx-xxxxxxxx .
Machine is onboarded to a different org. Error message:
For more information, visit: https://go.microsoft.com/fwlink/p/?linkid=822807

At this point i had access to only 1 tenant - abc.

My question is :

  1. Is there any way to force uninstall MDE from this machine ?
  2. If i get the network connection sorted, and i run another onboarding script will it overwrite the current one ? or do we have any way to force onboard to a different ? (at this time , as im writing this post, I have acces to another tenant as well )

Any help is greatly appreciated !

Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
417 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. David Broggy 5,801 Reputation points MVP
    2024-01-23T20:03:41.22+00:00

    Hey Francis, have you tried the powershell uninstall command: Uninstall-WindowsFeature -Name Windows-Defender Reference: https://winservicehub.com/powershell-commands/uninstall-windowsfeature/

    0 comments No comments

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.