{"id":29744068,"url":"https://github.com/athaser/intune-autopilot-onboarding-kit","last_synced_at":"2026-05-09T16:33:31.602Z","repository":{"id":305324161,"uuid":"1022565820","full_name":"athaser/intune-autopilot-onboarding-kit","owner":"athaser","description":"\"PowerShell scripts to register Windows devices in Intune using Windows Autopilot. Ideal for IT engineers preparing laptops for new hires with a streamlined, automated onboarding process","archived":false,"fork":false,"pushed_at":"2025-07-19T12:54:40.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T16:19:58.266Z","etag":null,"topics":["automation","autopilot","azuread","device-enrollment","endpoint-management","intune","mdm","modern-workplace","powershell","windows11"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athaser.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T10:53:55.000Z","updated_at":"2025-07-19T12:54:43.000Z","dependencies_parsed_at":"2025-07-19T16:28:42.371Z","dependency_job_id":"74d920a7-7ddf-4a2f-a7d5-8c57a92f0317","html_url":"https://github.com/athaser/intune-autopilot-onboarding-kit","commit_stats":null,"previous_names":["athaser/intune-autopilot-onboarding-kit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/athaser/intune-autopilot-onboarding-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athaser%2Fintune-autopilot-onboarding-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athaser%2Fintune-autopilot-onboarding-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athaser%2Fintune-autopilot-onboarding-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athaser%2Fintune-autopilot-onboarding-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athaser","download_url":"https://codeload.github.com/athaser/intune-autopilot-onboarding-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athaser%2Fintune-autopilot-onboarding-kit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267116594,"owners_count":24038624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","autopilot","azuread","device-enrollment","endpoint-management","intune","mdm","modern-workplace","powershell","windows11"],"created_at":"2025-07-26T04:11:02.772Z","updated_at":"2025-10-12T20:46:08.777Z","avatar_url":"https://github.com/athaser.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intune Autopilot Onboarding Kit\n\n![PowerShell](https://img.shields.io/badge/PowerShell-7+-blue?logo=powershell)\n![Platform](https://img.shields.io/badge/Platform-Windows%2010%2F11-lightgrey?logo=windows)\n![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)\n![Intune](https://img.shields.io/badge/Endpoint%20Management-Intune-blueviolet?logo=microsoft)\n![Status](https://img.shields.io/badge/Status-Stable-brightgreen)\n\n## About\n\nThis repository provides a set of PowerShell scripts and an optional graphical launcher to streamline the process of onboarding Windows devices into Intune via Windows Autopilot.\n\nIt is designed for IT engineers to prepare corporate laptops for new hires, ensuring that each device is registered in Autopilot and ready for automatic configuration on first boot.\n\n---\n\n## 🧭 Use Case\n\n- You’ve received a new Windows device (or reset one).\n- Before handing it to the end user, you want to:\n  - Register it in Autopilot.\n  - Assign it to the correct Azure AD group.\n  - Ensure it pulls the correct deployment profile during first setup.\n\n---\n\n## 🖥️ First Boot Steps (Windows Setup)\n\nWhen a new device is powered on:\n\n1. **Language selection screen appears**.\n2. Press **Shift + F10** to open **Command Prompt**.\n3. Type `powershell` to switch into PowerShell mode.\n4. Navigate to the folder containing these scripts (e.g., USB or Desktop):\n   ```powershell\n   D:  # Or E: or any other removable drive\n   ```\n\n   To see all drives:\n   ```powershell\n   diskpart\n   list volume\n   exit\n   ```\n\n---\n\n## ▶️ Using the GUI Launcher (Recommended for Non-Engineers)\n\nFor ease of use, launch:\n\n```powershell\n.\\gui_launcher.ps1\n```\n\nThis provides a **graphical menu** where you can click buttons to run each script. Useful for helpdesk staff or batch registrations.\n\n---\n\n## 🔐 Execution Policy (One-Time Setup)\n\nIf script execution is blocked:\n\n### ✅ Recommended (One-Time for Current Session Only):\n```powershell\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process\n```\n\nThis allows script execution **only in the current PowerShell window**.\n\n### ⚠️ Permanent (If Allowed by Your Org):\n```powershell\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\n```\n\nThis persists across sessions but may not comply with your organization’s policy.\n\n---\n\n## 📁 Scripts Overview\n\n### `1-autopilot_script_registration.ps1`\nRegisters the device with Autopilot using hardware hash.\n\n\u003e 🔧 **Make sure you're signed into a tenant with permissions to register devices**.\n\n---\n\n### `2-autopilot_check_device_registration.ps1`\nChecks if the device is already registered in Autopilot.\n\n---\n\n### `3-assign_the_device_to_specific_group.ps1`\nAssigns the current device to an Azure AD group (used for profile targeting).\n\n\u003e 🛠️ **You must edit this script** to include your **Group Object ID**:\n```powershell\n$GroupId = \"\u003cYOUR_GROUP_OBJECT_ID\u003e\"\n```\n\nFind this in Azure AD → Groups → Properties → Object ID.\n\n---\n\n### `4-show_groups_of_current_device.ps1`\nDisplays the Azure AD groups the current device is a member of.\n\n---\n\n### `5-check_autopilot_deployment_profile.ps1`\nConfirms if a deployment profile is assigned to this device.\n\n---\n\n### `6-execute_gist.ps1`\nOptional script for executing PowerShell content from a GitHub Gist (advanced use).\n\n---\n\n### `7-auto_detect_USB_drive_location.ps1`\nSample utility to identify USB drives automatically (used in older USB-based flows).\n\n---\n\n## 🧪 Testing Locally\n\nYou can test all scripts locally on a VM or device before production use. Ensure the device is Azure AD-joined or hybrid-joined for full results.\n\n---\n\n## 👥 Contributions\n\nFeel free to fork and submit improvements:\n- Add logging\n- Auto-fetch Group Object IDs\n- Export results to CSV\n\n---\n\n## 🛡️ Disclaimer\n\nUse these scripts only in authorized environments. Make sure you have the necessary permissions to register devices and assign them to groups in Azure.\n\n---\n\n## 📚 References\n\n- [Add Devices to Windows Autopilot – Microsoft Learn](https://learn.microsoft.com/en-us/autopilot/add-devices)\n- [Windows Autopilot Documentation – Microsoft Learn](https://learn.microsoft.com/en-us/mem/autopilot/)\n- [Windows Enrollment Methods – Microsoft Intune Docs](https://learn.microsoft.com/en-us/mem/intune/enrollment/windows-enrollment-methods)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathaser%2Fintune-autopilot-onboarding-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathaser%2Fintune-autopilot-onboarding-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathaser%2Fintune-autopilot-onboarding-kit/lists"}