Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants