Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Get-ComputerInfo incorrectly implemented #131

Open
comnam90 opened this issue Apr 19, 2019 · 3 comments
Open

Get-ComputerInfo incorrectly implemented #131

comnam90 opened this issue Apr 19, 2019 · 3 comments

Comments

@comnam90
Copy link

Hi guys,

It seems that in response to issue #123, a pull request #126 was created to introduce the use of Get-ComputerInfo.
This is a great addition to the data collection, however it was implemented incorrectly and as such isn't actually working.
Image of error

Currently it is trying to use the -CimSession parameter, but this isn't a supported parameter and instead should be executed via Invoke-Command to be run remotely when collecting the information.

Invoke-Command -ComputerName _C_ -ScriptBlock { Get-ComputerInfo }

Cheers,
Ben

@jlgandy2
Copy link

Yes I agree with you comname90. Get-ComputerInfo does NOT have a property of -cimsession. See this link. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-computerinfo?view=powershell-6

Proposed change to line 1939:
'Get-ComputerInfo',

@jlgandy2
Copy link

jlgandy2 commented May 6, 2019

Any update on this?Any update on this?

@jlgandy2
Copy link

Its been a long time guys. Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants