potatoqualitee / kbupdate

🛡 KB Viewer, Saver, Installer and Uninstaller
MIT License
326 stars 48 forks source link

Unable to find package providers (msi,msu,Programs) #205

Open crimsonread opened 1 year ago

crimsonread commented 1 year ago

Hi,

When I run Get-KbInstalledSoftware on my machine, I encountered below warning message.

Get-KbInstalledSoftware -ComputerName localhost WARNING: [13:57:29][Invoke-KbCommand] Failure on localhost | Unable to find package providers (msi,msu,Programs).

potatoqualitee commented 1 year ago

Hey crim, please execute $error[0] | select * and paste the results here. if that is not useful, try $error[1] until you see a helpful error

crimsonread commented 1 year ago

Hey crim, please execute $error[0] | select * and paste the results here. if that is not useful, try $error[1] until you see a helpful error

Hi, Please find below error message.

PS> $Error[0] | select *

PSMessageDetails : Exception : System.Exception: Unable to find package providers (msi,msu,Programs). ---> System.Exception: Unable to find package providers (msi,msu,Programs) . --- End of inner exception stack trace --- TargetObject : CategoryInfo : InvalidArgument: (:) [Write-Error], Exception FullyQualifiedErrorId : kbupdate_Invoke-KbCommand,Stop-PSFFunction ErrorDetails : Unable to find package providers (msi,msu,Programs). InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at Stop-PSFFunction, C:\Program Files\PowerShell\Modules\PSFramework\1.7.24 9\PSFramework.psm1: line 5432 at Invoke-KbCommand, : line 135 at Get-KbInstalledSoftware, : line 74 at , : line 1 PipelineIterationInfo : {0, 1}

DevClate commented 1 year ago

I'm receiving the same errors on the same lines as crimsonread using PowerShell 7.3.1, but if I use PowerShell 5.1 it works.

Gary0201 commented 8 months ago

Has KbUpdate been abandoned?