dba-dash icon indicating copy to clipboard operation
dba-dash copied to clipboard

Possible improvement for WMI collections

Open DavidWiseman opened this issue 2 years ago • 0 comments

From reddit

r-NBK

I would recommend you look into switching your WMI calls over to CIM calls. Much easier to get access through firewalls... Defined ports via WSMan protocol... And also easier to get the data needed with a lower permission set than needing to be added to the local administrators group. Changing is very easy, most cases it's just replacing Get-WMIObject with Get-CIMObject.

I just converted my scripts a few months ago and it was very painless. CIM can also do parallel calls pretty easy, and also keep connections open to query for different data without having to reconnect.

DavidWiseman avatar Sep 13 '22 19:09 DavidWiseman