Using a Filter and WMI to Get Information When a Property Returned is a Base Object
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9AYO6i9NYXcqPGjXyU6VN2Eoral0qOv8XTP4lJ0Os2LH94NlbZpJOIXgdtP60DskjXQOIN1-qVg0Fx-4O7DP9MD3jyufe_4B8TcWqqNORg8U1XgM8Go6TJFDpat4cAJG5TwoIBLDIwqg/s320/2017-06-29+09_06_34-Administrator_+Windows+PowerShell+ISE.png)
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'"