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

[PowerShell Core][macOS] Get-ESXInventory Errors #45

Open
kb1ibt opened this issue Oct 18, 2018 · 2 comments
Open

[PowerShell Core][macOS] Get-ESXInventory Errors #45

kb1ibt opened this issue Oct 18, 2018 · 2 comments

Comments

@kb1ibt
Copy link

kb1ibt commented Oct 18, 2018

While running Get-ESXInventory against a VCSA from my macOS running PSCore 6.0 and PowerCLI 11, I am getting multiple errors.

Get-VMHostHardware : Cmdlet Get-VMHostHardware is not supported on PowerShell Core.
At /usr/local/share/powershell/Modules/vDocumentation/2.4.4/Public/Get-ESXInventory.ps1:290 char:35
+         $hostHardware = $vmhost | Get-VMHostHardware -WaitForAllData  ...
+                                   ~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [], PlatformNotSupportedException
+ FullyQualifiedErrorId : System.PlatformNotSupportedException
New-CimSessionOption : The term 'New-CimSessionOption' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /usr/local/share/powershell/Modules/vDocumentation/2.4.4/Public/Get-ESXInventory.ps1:308 char:23
+             $cimOpt = New-CimSessionOption -SkipCACheck -SkipCNCheck  ...
+                       ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (New-CimSessionOption:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
New-CimSession : The term 'New-CimSession' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /usr/local/share/powershell/Modules/vDocumentation/2.4.4/Public/Get-ESXInventory.ps1:309 char:24
+             $session = New-CimSession -Authentication Basic -Credenti ...
+                        ~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (New-CimSession:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Get-CimInstance : The term 'Get-CimInstance' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /usr/local/share/powershell/Modules/vDocumentation/2.4.4/Public/Get-ESXInventory.ps1:310 char:31
+             $rac = $session | Get-CimInstance CIM_IPProtocolEndpoint  ...
+                               ~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Get-CimInstance:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
@dkalaluhi
Copy link

While this is a true statement, it appears the issue resides with PowerCLI Get-VMHostHardware, not actually with vDoc. @arielsanchezmora should close this :)

Maybe the beard can shed some light?

@arielsanchezmora
Copy link
Owner

I've filed an Aha! powercli request for the first cmdlet - Kyle did confirm it's not yet ported. Give it an upvote and it will get more priority!
https://powercli.ideas.aha.io/ideas/PCLI-I-193

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

3 participants