Powershell: win32_computersystem class not displaying all properties.

  • Powershell: win32_computersystem class not displaying all properties.

    Posted by Roddy Gelberty on 10 July 2020 at 2:43 pm

    win32_computersystem class not displaying all properties when running PowerShell. How can I display all the properties.

    Roddy Gelberty replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • Roddy Gelberty

    Member
    10 July 2020 at 3:40 pm
    Get-WmiObject -Class Win32_ComputerSystem|Select-Object -Property *

    You can run the above command for the win32_computersystem class. Other classes might require you to expose the extended properties by using the -Properties switch.

    $param = @("displayname", "givenname", "sn", "manager", "mail","streetaddress", "city", "st", "postalcode","co","telephonenumber", 
    "mobile", "ipphone", "homephone","extensionattribute2", "extensionattribute3", "extensionattribute4","company", "department",
    "extensionattribute1", "title", "physicaldeliveryofficename")
    
    get-aduser -filter * -properties $param | Select-Object $param

Log in to reply.