PowerShell CIM CmdLets – Working with lazy properties

You may also like...

2 Responses

  1. DexterPOSH says:

    Hey Maik,
    This is really useful information, I did not know it exist.
    Thanks for sharing.

    Dexter

  2. Hey, thanks for this info, really saved me some time. I was asked to review some code that’s in WMI, but the same principle applies.

    $wmi = Get-WmiObject -Namespace root\sms\site_IS1 -Class SMS_AuthorizationList -Filter ‘CI_ID = 16819446’
    $wmi.Get()
    $wmi.Updates

    Other examples I found used the WMI class to just convert the path, but doing this precludes using credentials, and didn’t fit my workflow.

Leave a Reply to DexterPOSH Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.