Web Analytics

Azure-Runbooks

⭐ 61 stars Simplified Chinese by sargeschultz11

Azure-Runbooks

License: MIT PowerShell Microsoft 365 Graph API Azure GitHub release Maintenance Made with

A collection of Azure Automation runbooks for Microsoft 365 and Intune management.

Overview

This repository contains PowerShell scripts designed to be used as Azure Automation runbooks for automating various Microsoft 365 and Intune management tasks. These scripts help streamline administrative processes, maintain consistency across your environment, and reduce manual overhead.

Repository Structure

The repository is organized into folders, with each folder containing a specific runbook solution:

Azure-Runbooks/
├── DeviceCategorySync/             # Sync device categories with user departments
├── Report-DiscoveredApps/          # Generate reports of discovered applications
├── Report-IntuneDeviceCompliance/  # Generate device compliance reports
├── Report-DevicesWithApp/          # Find devices with specific applications
├── Alert-DeviceSyncReminder/       # Send reminders for devices needing sync
├── Update-AutopilotDeviceGroupTags/ # Sync Autopilot group tags with Intune categories
├── Alert-IntuneAppleTokenMonitor/  # Monitor Apple token expirations
├── Report-UserManagers/            # Generate reports of users and their managers
├── Report-MissingSecurityUpdates/  # Report on devices missing security updates
├── Sync-IntuneDevices/             # Force sync all managed Intune devices
├── Report-DeviceSyncOverdue/       # Report on devices overdue for sync
├── Report-OneDriveSharedItems/     # Generate reports of shared items in OneDrive
├── Task-SetCompanyAttribute/       # Set company attribute for all users
├── Snipe-IT-UserSync/              # Sync Microsoft 365 users to Snipe-IT users
├── Sync-IntuneToAction1Categories/ # Sync Intune device categories to Action1 custom attributes
每个运行簿文件夹包含:

认证

本仓库中的所有运行簿均设计为使用 Azure 自动化的系统分配托管身份进行认证,这是 Azure 自动化推荐的认证方式。每个文件夹都包含一个 Add-GraphPermissions.ps1 脚本,帮助为您的自动化帐户的托管身份分配所需的 Microsoft Graph API 权限。

快速开始

每个运行簿都包含详细的实现和使用文档。一般而言,使用这些运行簿的步骤如下:

可用运行簿

报告

设备管理

警报和通知

用户管理

第三方集成

分支管理

本仓库遵循简化的 Git 工作流程:

如果您正在使用特定的开发分支,建议创建自己的分叉,以确保分支被删除时您的工作不会受到影响。

v1.4.0 新功能

新运行手册:Sync-IntuneToAction1Categories

此版本引入了与 Action1 RMM 的新集成,实现 Intune 设备类别自动同步到 Action1 自定义属性。主要功能包括:

该集成帮助组织在 Microsoft Intune 和 Action1 RMM 平台之间保持设备分类一致,促进更好的报告、策略应用和设备管理流程。

讨论区

我已为本仓库启用 GitHub 讨论区,以促进用户之间的协作和支持。这里是:

查看讨论标签加入讨论。我们鼓励您使用讨论区进行一般问题和社区互动,而问题区应仅用于报告脚本的错误或具体问题。

贡献

欢迎将这些脚本作为您自动化需求的起点。我们欢迎贡献、改进和建议!

许可

本项目采用 MIT 许可证授权 - 详情请参阅LICENSE文件。 --- Tranlated By Open Ai Tx | Last indexed: 2025-12-06 ---