Skip to content

Intune, autopilot & entra remover, now in JavaScript!

License

Notifications You must be signed in to change notification settings

fibershot/iaer-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iaer-js

Intune, autopilot & entra (device) remover, now in JavaScript!

What is this? 😕

A web application for fetching device data, selecting devices and deleting them from Intune, Autopilot and Entra.

The latest version I implemented of this was in PowerShell. The modules, the multiple scripts and the errors...
Well, (hopefully) not anymore! I've tested this with a few devices and have received successful results!

As of now, I have a few checks, cleanup and more failchecks to implement, use with caution.

How / when does it work? 🤔

On the web application users can submit serials to the input area. This works best, when the device's name includes the serial since Entra devices cannot be fetched via serials.

Fetched devices will be listed with latest login details, IDs from the different systems, serials, model info and more.
Each successfully listed device may be selected and deleted with the press of a button. The process is automatic and if the deletion fails at any step, the program interrupts itself for analysation.

Failchecks have been implemented in many places. Deletion does not happen, unless the user desides to so. Fetching doesn't delete anything.

This application works with an app registration to Entra. The following API permissions might be required:

AuditLog.Read.All
Device.Read.All
Device.ReadWrite.All
DeviceManagementManagedDevices.Read.All
DeviceManagementManagedDevices.ReadWrite.All
DeviceManagementServiceConfig.Read.All
DeviceManagementServiceConfig.ReadWrite.All
User.Read.All

Installation and usage 🛠️

Clone the repository to your wished location and use npm install to install required packages.
Add your client and tenant IDs into /js/appSettings.js along with your client secret
Use node main.js to start the application, which opens to 127.0.0.1:4070.

About

Intune, autopilot & entra remover, now in JavaScript!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published