Skip to content

Get-WmiObject not supported in newer versions of Powershell #3

@tggbco

Description

@tggbco

Apparently, the last version that supported this was ver 5.1. I'm using Powershell 6 and it's not supported. Based on the link below, it appears that Powershell 7.3 is the most recent.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-wmiobject?view=powershell-5.1

Error details:
Get-WmiObject : The term 'Get-WmiObject' 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 C:\Users\Vito\Downloads\Gigabyte-main\Gigabyte-main\GigaTest.ps1:398 char:10

  • $model = Get-WmiObject win32_baseboard | Select-Object Product
  •      ~~~~~~~~~~~~~
    
  • CategoryInfo : ObjectNotFound: (Get-WmiObject:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions