Git Product home page Git Product logo

intuneoffboarding's Introduction

Intune Offboarding Tool


Sign up for my newsletter to receive immediate notifications whenever I launch a new tool, script or update.
Sign up to the Newsletter


This PowerShell script provides a WPF GUI-based tool that facilitates the offboarding of devices from Microsoft's Intune, AutoPilot, and Azure AD services. The tool leverages Microsoft Graph APIs to authenticate, search, and remove devices.

Quickstart:

Install-Script -Name Get-IntuneOffboardingTool

Intune_Offboarding_Tool.mp4

Features

  • Connect to Microsoft Graph
  • Search for devices
  • Display device information
  • Offboard devices from Intune, AutoPilot, and Azure AD

Requirements

  • Microsoft PowerShell 5.1 or later

  • Necessary modules:

  • Microsoft.Graph.Identity.DirectoryManagement

  • Microsoft.Graph.DeviceManagement

  • Microsoft.Graph.DeviceManagement.Enrollment

  • Permissions:

  • DeviceManagementManagedDevices.ReadWrite.All,

  • DeviceManagementServiceConfig.ReadWrite.All

These modules will be installed automatically if not present, but you need to have administrative permissions. Instructions

  1. Clone this repository or download the script.
  2. Open PowerShell.
  3. Navigate to the directory containing the script.
  4. Run the script by typing .\Get-IntuneOffboardingTool.ps1

Using the Tool

  1. Connect to Microsoft Graph: Click the "Connect to MS Graph" button to authenticate. The button will display "Successfully Connected" when the connection is established.
  2. Install Modules: Click the "Install Modules" button to install the necessary PowerShell modules for the script to run. The button will display "Modules Installed" when the modules are successfully installed.
  3. Search: Enter the device name in the provided text box and click the "Search" button. The device details will be displayed in the text blocks below, and the availability status of the device in Intune, Autopilot, and AzureAD will also be shown.
  4. Offboard: Click the "Offboard" button to remove the device from Intune, AutoPilot, and Azure AD. A success message will be displayed after each successful removal.

Notes

  • Ensure you have administrative permissions to install necessary modules.
  • Ensure you have the necessary privileges in your Microsoft 365 subscription to offboard devices from Intune, AutoPilot, and Azure AD.

Troubleshooting

If you face any issues while running the script, please check the following:

You have a valid Microsoft 365 subscription.
You have installed the necessary modules.
You have administrative privileges.
The device name you're searching for exists in the respective services.

Disclaimer

This tool is provided as-is, with no warranties. Always test scripts and tools in a safe and recoverable environment before deploying them in production. Please ensure you have proper backups before performing any offboarding. Contributions

Contributions, issues, and feature requests are welcome.

Feel free to check the issues page.

License

This project is MIT licensed.

intuneoffboarding's People

Contributors

ugurkocde avatar danielbradley1 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.