[BUG] PowerShell package updates fail with outdated PowerShellGet modules
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #5455 di @GabrielDuf — integrata
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- powershell
- Ambito
- tooling
Direzione di ricerca
Start with the PowerShell 5.x and PowerShell 7.x manager operations described in the logs, reproducing the Microsoft.Graph update and module-install scenarios. Inspect the paths using Get-InstalledModule, Install-Module, and Install-PSResource, including the reported PowerShellGet\1.0.0.1\PSModule.psm1 failures. Done means the affected package updates and module operations work without the null DateTime or positional-parameter errors.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.°
Windows version, edition, and architecture
Windows 11 Enterprise 26200.9445 x64
Describe your issue
While updating:
Microsoft.Graph.Authentication2.39.0 → 2.40.0Microsoft.Graph.Groups2.39.0 → 2.40.0
UniGetUI failed with:
Cannot convert null to type
System.DateTime.
The investigation showed that Windows PowerShell 5.1 was still using:
PowerShellGet1.0.0.1PackageManagement1.0.0.1
In UniGetUI:
- PowerShell 5.x exposes
PackageManagement, but notPowerShellGet. - PowerShell 7.x exposes both modules, but installing both fails.
As a result, the PowerShell 5.x backend remains on outdated package-management modules without a working update path.
Steps to reproduce the issue
-
In Windows PowerShell 5.1, verify that the following modules are installed:
PowerShellGet1.0.0.1PackageManagement1.0.0.1
-
In UniGetUI, try to update either
Microsoft.Graph.AuthenticationorMicrosoft.Graph.Groupsfrom 2.39.0 to 2.40.0. -
Observe the following error:
Cannot convert null to type "System.DateTime".
-
Search UniGetUI for
PowerShellGetandPackageManagement. -
Observe that:
- PowerShell 5.x exposes only
PackageManagement. - PowerShell 7.x exposes both modules.
- PowerShell 5.x exposes only
-
In PowerShell 7.x, try to install both modules.
-
Observe the installation failure:
A positional parameter cannot be found that accepts argument 'False'.
UniGetUI Log
[20/09/2026 11:38:39] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: PowerShell 5.x (aka PowerShell)
█ Executable name: "powershell.exe"
█ Executable path: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"
█ Call arguments: " -NoProfile -Command"
█ Version: Name Value
█ ---- -----
█ PSVersion 5.1
█ PSEdition Desktop
█
█ PowerShell 5.x is enabled and ready to go.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[20/09/2026 11:38:39] ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▀▀▀▀▀▀▀▀▀▀▀▀▀ MANAGER LOADED ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
█ Name: PowerShell 7.x (aka PowerShell7)
█ Executable name: "pwsh.exe"
█ Executable path: "C:\Users\<USERNAME>\AppData\Local\Microsoft\WindowsApps\pwsh.exe"
█ Call arguments: " -NoProfile -Command"
█ Version: PowerShell 7.6.6
█
█ PowerShell 7.x is enabled and ready to go.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
[20/09/2026 11:40:38] Found 9 available packages from PowerShell7 with the query PowerShellGet
[20/09/2026 11:40:40] Found 50 available packages from PowerShell with the query PowerShellGet
[20/09/2026 11:48:15] Loaded operation parameters for package id=PowerShellGet on manager PowerShell7 and operation Install: Install-PSResource -Name PowerShellGet -Confirm:$false -TrustRepository -AcceptLicense -Scope CurrentUser
[20/09/2026 11:55:46] Found 8 available packages from PowerShell7 with the query PackageManagement
[20/09/2026 11:55:48] Found 49 available packages from PowerShell with the query PackageManagement
[20/09/2026 11:56:05] Loaded operation parameters for package id=PackageManagement on manager PowerShell7 and operation Install: Install-PSResource -Name PackageManagement -Confirm:$false -TrustRepository -AcceptLicense -Scope CurrentUser
[20/11/2026 11:59:12] Loaded operation parameters for package id=PackageManagement on manager PowerShell and operation Install: Install-Module -Name PackageManagement -Confirm:$false -Force -Scope CurrentUser -ErrorVariable UniGetUIOperationError
Package Managers Logs
Manager PowerShell 7.x with version:
PowerShell 7.6.6
——————————————————————————————————————————
Logged subprocess-based task on manager PowerShell7. Task type is ListSources
Subprocess executable: "C:\Users\<USERNAME>\AppData\Local\Microsoft\WindowsApps\pwsh.exe"
Command-line arguments: " -NoProfile -Command "if (Get-Command Get-PSResourceRepository -ErrorAction SilentlyContinue) { Get-PSResourceRepository | Format-Table -Property Name,Uri } else { Get-PSRepository | Format-Table -Property Name,@{N='SourceLocation';E={If ($_.Uri) {$_.Uri.AbsoluteUri} Else {$_.SourceLocation}}} }""
Process start time: 20/09/2026 11:38:39
Process end time: 20/09/2026 11:38:40
-- Process STDOUT
Name Uri
---- ---
PSGallery https://www.powershellgallery.com/api/v2
Return code: SUCCESS (0)
——————————————————————————————————————————
Logged subprocess-based task on manager PowerShell7. Task type is ListInstalledPackages
Subprocess executable: "C:\Users\<USERNAME>\AppData\Local\Microsoft\WindowsApps\pwsh.exe"
Command-line arguments: " -NoProfile -Command "Write-Output '##SCOPE:AllUsers##'; Get-InstalledPSResource -Scope AllUsers | ForEach-Object { $_.Name + [char]9 + $_.Version + [char]9 + $_.Repository }; Write-Output '##SCOPE:CurrentUser##'; Get-InstalledPSResource -Scope CurrentUser | ForEach-Object { $_.Name + [char]9 + $_.Version + [char]9 + $_.Repository }""
Process start time: 20/09/2026 11:38:42
Process end time: 20/09/2026 11:38:44
-- Process STDOUT
##SCOPE:AllUsers##
##SCOPE:CurrentUser##
Microsoft.PowerShell.PSResourceGet 1.2.0 PSGallery
Microsoft.PowerShell.PSResourceGet 1.1.1 PSGallery
-- Process STDERR
Get-InstalledPSResource: No match was found for package '*'.
Return code: SUCCESS (0)
——————————————————————————————————————————
Logged native task on manager PowerShell7. Task type is FindPackages
Process start time: 20/09/2026 11:40:36
Process end time: 20/09/2026 11:40:38
-- Task information
Begin package search with url=https://www.powershellgallery.com/api/v2/Packages()?$filter=substringof('PowerShellGet',Id) and IsLatestVersion eq true&$orderby=DownloadCount desc&$skip=0&$top=50 on manager PowerShell7
Found package PowerShellGet version 2.2.5 on source PSGallery
Found package ADOPowershellGet version 0.2.4 on source PSGallery
Found package PowerShellGetGUI version 1.0.0 on source PSGallery
Found package CompatPowerShellGet version 0.0.4 on source PSGallery
Found package OfflinePowerShellGetDeploy version 0.1.1 on source PSGallery
Found package PowerShellGetCompat version 0.0.1 on source PSGallery
Found package PowerShellGet-Test-Binary-Module version 1.0.0.3 on source PSGallery
Found package Update-PowerShellGet version 1.0.0 on source PSGallery
Found package Repair-PowerShellGetModuleRoleCapabilities version 1.0.0 on source PSGallery
The task reported success
——————————————————————————————————————————
Logged native task on manager PowerShell7. Task type is FindPackages
Process start time: 20/09/2026 11:55:45
Process end time: 20/09/2026 11:55:46
-- Task information
Begin package search with url=https://www.powershellgallery.com/api/v2/Packages()?$filter=substringof('PackageManagement',Id) and IsLatestVersion eq true&$orderby=DownloadCount desc&$skip=0&$top=50 on manager PowerShell7
Found package PackageManagement version 1.4.8.1 on source PSGallery
Found package PackageManagementProviderResource version 1.0.3 on source PSGallery
Found package cPowerShellPackageManagement version 1.0.1 on source PSGallery
Found package AzureAutomationTools.PackageManagement version 0.6.0 on source PSGallery
Found package ProActive.PowerShell.PackageManagement version 1.1.0 on source PSGallery
Found package DPT.PackageManagement version 1.0.0 on source PSGallery
Found package Gucu112.Powershell.PackageManagement version 0.1.2601.30 on source PSGallery
Found package Shmuelie.PackageManagement version 0.3.0 on source PSGallery
The task reported success
Manager PowerShell 5.x with version:
Name Value
---- -----
PSVersion 5.1.26100.9444
PSEdition Desktop
——————————————————————————————————————————
Logged subprocess-based task on manager PowerShell. Task type is ListInstalledPackages
Subprocess executable: "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"
Command-line arguments: " -NoProfile -Command Get-InstalledModule"
Process start time: 20/09/2026 11:38:42
Process end time: 20/09/2026 11:38:45
-- Process STDOUT
Version Name Repository
------- ---- ----------
2.40.0 Microsoft.Graph.Authentication PSGallery
2.40.0 Microsoft.Graph.Groups PSGallery
2.31.0 Microsoft.Graph.Identity.Directo... PSGallery
-- Process STDERR
Cannot convert null to type "System.DateTime".
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7016 char:17
+ $InstalledDate = $null
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (:) [], ArgumentTransformationMetadataException
+ FullyQualifiedErrorId : RuntimeException
Cannot convert null to type "System.DateTime".
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7026 char:17
+ $UpdatedDate = $null
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (:) [], ArgumentTransformationMetadataException
+ FullyQualifiedErrorId : RuntimeException
Return code: SUCCESS (0)
——————————————————————————————————————————
Logged native task on manager PowerShell. Task type is FindPackages
Process start time: 20/09/2026 11:40:36
Process end time: 20/09/2026 11:40:40
-- Task information
Begin package search with url=https://www.powershellgallery.com/api/v2/Search()?$filter=IsLatestVersion&$orderby=Id&searchTerm='PowerShellGet'&targetFramework=''&includePrerelease=false&$skip=0&$top=50&semVerLevel=2.0.0 on manager PowerShell
Found package PowerShellGet version 2.2.5 on source PSGallery
The task reported success
——————————————————————————————————————————
Logged native task on manager PowerShell. Task type is FindPackages
Process start time: 20/09/2026 11:55:45
Process end time: 20/09/2026 11:55:48
-- Task information
Begin package search with url=https://www.powershellgallery.com/api/v2/Search()?$filter=IsLatestVersion&$orderby=Id&searchTerm='PackageManagement'&targetFramework=''&includePrerelease=false&$skip=0&$top=50&semVerLevel=2.0.0 on manager PowerShell
Found package PackageManagement version 1.4.8.1 on source PSGallery
Found package PowerShellGet version 2.2.5 on source PSGallery
The task reported success
Relevant information
Windows PowerShell 5.1 initially had:
PowerShellGet1.0.0.1PackageManagement1.0.0.1
Manually upgrading them and PowerShell to:
PowerShellGet2.2.5PackageManagement1.4.8.1
resolved the Microsoft.Graph update issue.
Additional UniGetUI findings:
-
PowerShell 5.x exposes
PackageManagement, but notPowerShellGet. -
PowerShell 7.x exposes both modules, but installation fails with:
A positional parameter cannot be found that accepts argument 'False'.
-
Installing
PackageManagementthrough PowerShell 5.x fails because UniGetUI does not pass-AllowClobber.
Screenshots and videos
No response
- Lingua principale
- C#
- Stelle
- 26.6k
- Fork
- 945
- Merge medio
- 22h 26m
- PR unite (30g)
- 74
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Devolutions/UniGetUI
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
Devolutions/UniGetUI#5541 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Devolutions/UniGetUI#5029 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Bun updates not detected when installed via Scoop — GetGlobalPackagesDirectory ignores BUN_INSTALLForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Devolutions/UniGetUI#4918 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
Devolutions/UniGetUI#4768 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Devolutions/UniGetUI#5538 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Devolutions/UniGetUI
Issue simili
-
has-image has-license has-readme new-tool ready-to-approve repo-verified
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
shanselman/TinyToolTown#862 ·
I maintainer di solito rispondono entro 5 giorni
-
S: Untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
space-wizards/space-station-14#46497 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
nightscout/nocturne#2135 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows Needs: Triage :mag:
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno