Powershell: win32_computersystem class not displaying all properties.

  • 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.

DCOM hardening issue.

This application fails to authenticate with WMI on the SCCM server because Microsoft has not yet hardened DCOM on their Windows Preinstallation Environment. We are working on a different approach, but it will only be released during the first quarter of 2024. But until that time, the only workaround will be to uninstall the update corresponding to KB5004442.