WinGet-Wrapper:WinGet批量部署到Intune的PowerShell脚本
一组PowerShell脚本与GUI工具,将WinGet包连同元数据批量导入Intune并做版本检测。
WinGet-Wrapper 提供一组 PowerShell 脚本,用于把 WinGet 包及其元数据批量导入 Microsoft Intune 并部署。核心脚本 WinGet-Wrapper.ps1 负责安装,支持安装前后脚本、安装前结束指定进程、传入自定义参数;检测脚本 WinGet-WrapperDetection.ps1 用 WinGet 查询的最新版本或指定目标版本与本地已装版本比对,可接受本地更新版本;需求脚本用于仅更新已安装应用的场景。脚本会动态定位 System Context 下的 WinGet 目录、判断运行上下文,日志写入 $env:ProgramData\WinGet-WrapperLogs 并自动清理 60 天前的日志。配套的 WinGet-WrapperImportGUI.exe 提供搜索、选择、CSV 导入导出并直接导入 Intune 的图形界面。要求 Windows 10 20H2+、PowerShell 5.1、客户端语言为 en-US,并需 IntuneWin32App 与 Microsoft.Graph.Intune 模块。