Using a Filter and WMI to Get Information When a Property Returned is a Base Object

When using WMI, particularly querying win32_offlinefileitem, one of the properties returned is a System.ManagementBaseObject. In this example, I want to look for OfflineFile items that have "ChangeInfo", then inside it the "DirtyInfo" is True. To do that, use dot notation in your filter, like so:

gwmi win32_offlinefilesitem -Filter "changeinfo.dirty = 'true'"


Popular posts from this blog

Outlook VBA Macros for Journal Entries

SCCM PXE Boot Issues - No Advertisements Found

Updating Dell iDRAC ISM