Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG] PowerShell module uninstall passes truncated package ID containing "..." to Uninstall-Module

未关闭
#5,448 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp, powershell
领域
desktop, tooling

调研方向

Start with the uninstall flow that invokes Assets/Utilities/unigetui_ps_operation.ps1 and compare the full package ID with the truncated value shown in the operation log. Reproduce with VMware.PowerCLI.VCenter.Types.ApplianceService, then verify that Uninstall-Module receives the full ID and the module uninstall succeeds.

由索引模型根据 Issue 内容生成。

描述

bug
Please confirm these before moving forward
  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).
UniGetUI Version

2026.3.0

Windows version, edition, and architecture

Windows 11 Enterprise 25H2 26200.9278 x64

Describe your issue

Uninstalling VMware.PowerCLI.VCenter.Types.ApplianceService from Installed Packages fails. UniGetUI shows the package name/ID shortened to "VMware.PowerCLI.VCenter.Types.Ap..." and then passes that shortened string, including the "...", to Uninstall-Module. PowerShell reports that no module matches that name

It happens with both normal uninstall and Run as Administrator. I see the same behavior with other PowerShell modules whose very long names are shortened in the package list. I haven't determined an exact name-length cutoff

Expected: UniGetUI uses the full package ID for the uninstall command, regardless of how the name is displayed

Steps to reproduce the issue
  1. Install the PowerShell Gallery module VMware.PowerCLI.VCenter.Types.ApplianceService. My installed version is 12.6.0.19600125
  2. Open UniGetUI > Installed Packages and search for "vmware"
  3. Select the entry shown as VMware.PowerCLI.VCenter.Types.Ap... (source: PowerShell 5.x: PSGallery)
  4. Uninstall it normally, then retry with Run as Administrator
  5. Check the operation log. UniGetUI runs Uninstall-Module -Name VMware.PowerCLI.VCenter.Types.Ap... and the operation fails with NoMatchFound
UniGetUI Log
Package uninstall operation for Package=VMware.PowerCLI.VCenter.Types.Ap... with Manager=PowerShell
Executing process with StartInfo:
 - FileName: "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe"
 - Arguments: [-NoProfile] [-ExecutionPolicy] [Bypass] [-File] [C:\Program Files\UniGetUI\Assets\Utilities\unigetui_ps_operation.ps1] [tls12] [Uninstall-Module] [-Name] [VMware.PowerCLI.VCenter.Types.Ap...] [-Confirm:$false] [-Force] [-ErrorVariable] [UniGetUIOperationError]
PackageManagement\Uninstall-Package : No match was found for the specified search criteria and module names
'VMware.PowerCLI.VCenter.Types.Ap...'.
At C:\Users\<username>\Documents\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:12733 char:21
+ FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage
Process return value: "1" (0x1)
VMware.PowerCLI.VCenter.Types.Ap... could not be uninstalled
Package Managers Logs
N/A — this is a PowerShell module uninstall. The failed PowerShell command and its output are included in the UniGetUI/operation log above
Relevant information

The package list shows both Package Name and Package ID shortened with "...". The same shortened value appears in the executed -Name argument, so this does not appear to be only a visual truncation issue.

Screenshots and videos

No response

主要语言
C#
星标
26.2k
派生
929
平均合并
1 天 1 小时
30 天内合并 PR
58

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Devolutions/UniGetUI 的其他 Issue

查看 Devolutions/UniGetUI 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。