Skip to content

[Bug]: Error when running some commands: Get-Job : The command cannot find the job because the job name wg was not found #22

@thx1200

Description

@thx1200

Describe the problem

When running Get-WGInstalled and Get-WGUpgrade, I get the below error. Running the same commands using "winget" does work.

WARNING: There was a problem getting a list of installed packages.
Get-Job : The command cannot find the job because the job name wg was not found. Verify the value of the Name parameter, and then try the
command again.
At C:\Program Files\WindowsPowerShell\Modules\WingetTools\1.7.0\functions\Get-WGInstalled.ps1:122 char:13
+         if (Get-Job -Name wg) {
+             ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (wg:String) [Get-Job], PSArgumentException
    + FullyQualifiedErrorId : JobWithSpecifiedNameNotFound,Microsoft.PowerShell.Commands.GetJobCommand

Expectation

List of packages or starting the upgrade.

Additional Information

Test-WGVersion
Installed : 1.4.10173
Online : 1.4.10173
Update : False

PowerShell version

5.1

Platform

Windows 10 Pro or Enterprise

Additional Checks

  • You are using the latest version of this module.
  • You have read this repository's README file.
  • You have read full help and examples for the command you are having problems with.
  • You are running PowerShell in an elevated session.
  • You are running in a traditional PowerShell console or Windows Terminal

Metadata

Metadata

Labels

bugSomething isn't workingtriagenew issue that needs review

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions