DeviceOffboardingManager
A PowerShell GUI tool for efficiently managing and offboarding devices from Microsoft Intune, Autopilot, and Entra ID, featuring bulk operations and real-time analytics for streamlined device lifecycle management.
Install / Use
/learn @ugurkocde/DeviceOffboardingManagerREADME
⚙️ Device Offboarding Manager
<div align="center"> <p> <a href="https://twitter.com/UgurKocDe"> <img src="https://img.shields.io/badge/Follow-@UgurKocDe-1DA1F2?style=flat&logo=x&logoColor=white" alt="Twitter Follow"/> </a> <a href="https://www.linkedin.com/in/ugurkocde/"> <img src="https://img.shields.io/badge/LinkedIn-Connect-0A66C2?style=flat&logo=linkedin" alt="LinkedIn"/> </a> <img src="https://img.shields.io/github/license/ugurkocde/IntuneAssignmentChecker?style=flat" alt="License"/> </p> <a href="https://www.powershellgallery.com/packages/DeviceOffboardingManager"> <img src="https://img.shields.io/powershellgallery/v/DeviceOffboardingManager?style=flat&label=PSGallery%20Version" alt="PowerShell Gallery Version"/> </a> <a href="https://www.powershellgallery.com/packages/DeviceOffboardingManager"> <img src="https://img.shields.io/powershellgallery/dt/DeviceOffboardingManager?style=flat&label=PSGallery%20Downloads&color=brightgreen" alt="PowerShell Gallery Downloads"/> </a> </div>A modern PowerShell-based GUI tool for managing and offboarding devices from Microsoft Intune, Autopilot, and Entra ID (formerly Azure AD). This tool provides a streamlined interface for device lifecycle management across Microsoft services.
Watch the full walkthrough of the tool:
<div align="center"> <a href="https://www.youtube.com/watch?v=CbximIIAEgc"> <img src="https://img.youtube.com/vi/CbximIIAEgc/maxresdefault.jpg" alt="IntuneAssignmentChecker" style="width:100%;"> </a> </div>Table of Contents
- ⚙️ Device Offboarding Manager
🚀 Quick Start
Important: All commands must be run in a PowerShell 7 session. The script will not work in PowerShell 5.1 or earlier versions.
Option 1: Install from PowerShell Gallery (Recommended)
# Install Microsoft Graph Authentication Modul
Install-Module Microsoft.Graph.Authentication -Scope CurrentUser
# Install from PowerShell Gallery
Install-Script DeviceOffboardingManager
# Open a new PowerShell 7 session to run the script with
DeviceOffboardingManager
Option 2: Manual Installation
# Install Microsoft Graph Authentication Modul
Install-Module Microsoft.Graph.Authentication -Scope CurrentUser
# Download and run the script
.\DeviceOffboardingManager.ps1
Update to the latest Version
# Restart the PowerShell Session after installing the new version
Install-Script DeviceOffboardingManager -Force
🎯 Features
🔑 Core Functionality
- Multi-Service Integration: Manage devices across Intune, Autopilot, and Entra ID
- Bulk Operations: Support for bulk device imports and operations
- Real-time Dashboard: View device statistics and distribution
- Secure Authentication: Multiple authentication methods including interactive, certificate, and client secret
💻 Device Management

- Search devices by name or serial number
- View device details including:
- Last contact times
- Operating system
- Primary user
- Management status across services
- Bulk device offboarding with confirmation
- Automatic retrieval of BitLocker/FileVault keys
📊 Dashboard Analytics

- Total device counts per service
- Stale device tracking (30/90/180 days)
- Personal vs Corporate device distribution
- Platform distribution visualization
- Real-time statistics updates
📚 Playbooks

- Automated device management tasks
- Pre-built reports and analyses
- Custom playbook support for specific scenarios
⚡ Prerequisites
- PowerShell 7.0 or higher
- Microsoft.Graph.Authentication module
- Required Microsoft Graph API permissions:
- Device.ReadWrite.All
- DeviceManagementApps.Read.All
- DeviceManagementConfiguration.Read.All
- DeviceManagementManagedDevices.ReadWrite.All
- DeviceManagementServiceConfig.ReadWrite.All
- Group.Read.All
- User.Read.All
- BitlockerKey.Read.All
🔧 Usage
🔐 Authentication
The tool supports three authentication methods:
- Interactive Login: Best for admin users with appropriate permissions
- Certificate-based: For automated or service principal authentication
- Client Secret: Alternative service principal authentication method
To connect:
- Click "Connect to MS Graph" in the sidebar
- Choose your authentication method
- Provide required credentials
- Verify connection status in the tenant information section
💻 Device Management
-
Search for Devices:
- Select search type (Device name/Serial number)
- Enter search terms (supports multiple values with comma separation)
- Click Search to retrieve device information
-
Bulk Import:
- Click "Bulk Import"
- Select a CSV/TXT file containing device names or serial numbers
- Verify imported devices in the search field
-
Device Offboarding:
- Select devices in the results grid
- Click "Offboard device(s)"
- Review the confirmation dialog
- Note any encryption recovery keys
- Confirm the operation
📊 Dashboard
The dashboard provides real-time insights into your device management environment:
- Device counts across services
- Stale device tracking
- Ownership distribution
- Platform distribution
- Quick access to common tasks
📚 Playbooks
Automated tasks for common scenarios:
- Find Autopilot devices not in Intune
- List Intune devices not in Autopilot
- Generate corporate device inventory
- View personal device inventory
- Analyze stale devices
- OS-specific device reports
- Encryption key reports
👥 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Skills
feishu-drive
338.7k|
things-mac
338.7kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
338.7kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
yu-ai-agent
1.9k编程导航 2025 年 AI 开发实战新项目,基于 Spring Boot 3 + Java 21 + Spring AI 构建 AI 恋爱大师应用和 ReAct 模式自主规划智能体YuManus,覆盖 AI 大模型接入、Spring AI 核心特性、Prompt 工程和优化、RAG 检索增强、向量数据库、Tool Calling 工具调用、MCP 模型上下文协议、AI Agent 开发(Manas Java 实现)、Cursor AI 工具等核心知识。用一套教程将程序员必知必会的 AI 技术一网打尽,帮你成为 AI 时代企业的香饽饽,给你的简历和求职大幅增加竞争力。
