[Bug 52887] New: Get-Computerinfo from NoPowershell crashes

WineHQ Bugzilla wine-bugs at winehq.org
Sun Apr 24 16:16:59 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52887

            Bug ID: 52887
           Summary: Get-Computerinfo from NoPowershell crashes
           Product: Wine
           Version: 7.7
          Hardware: x86-64
               URL: https://github.com/bitsadmin/nopowershell/releases/tag
                    /1.23
                OS: Linux
            Status: NEW
          Keywords: dotnet, download
          Severity: normal
          Priority: P2
         Component: wmi&wbemprox
          Assignee: wine-bugs at winehq.org
          Reporter: xerox.xerox2000x at gmail.com
      Distribution: ---

Created attachment 72275
  --> https://bugs.winehq.org/attachment.cgi?id=72275
patch

NoPowershell.exe provides a number of commandlets without the need to install
it(https://github.com/bitsadmin/nopowershell/releases/tag/1.23). 
Prerequisite: winetricks -q dotnet48

The commandlet Get-Computerinfo acts as replacement of systeminfo.exe

Source: 
https://github.com/bitsadmin/nopowershell/blob/master/Source/NoPowerShell/Commands/Management/GetComputerInfoCommand.cs

Currently fails with:
Get-ComputerInfo : System.ArgumentOutOfRangeException: Index was out of range.
Must be non-negative and less than the size of 
the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument
argument, ExceptionResource resource)
   at NoPowerShell.Commands.Management.GetComputerInfo.Execute(CommandResult
pipeIn)
   at NoPowerShell.Program.Main(String[] args)

Attached patch fixes it, to run into next bug . Next bugs are some missing
props from various classes. After adding them (albeit quickly with some hacks)
the cmdlet runs.

I attach first three patches, rest follows later.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list