Quantcast
Viewing all articles
Browse latest Browse all 21975

wmi filter only works when negated twice

Has anyone ever saw this before and/or do they know whats causing it?  When i try to run the query with the filter of 10.1.% it doesn't return anything.  But when I negate the filter twice, I am actually getting the data I was looking for?!?! 

PS C:\> gwmi -Namespace root\microsoftdns microsoftdns_atype -Filter "IPaddress LIKE '10.1.%'" | Select IPAddress -First 10
PS C:\> gwmi -Namespace root\microsoftdns microsoftdns_atype -Filter "NOT NOT IPaddress LIKE '10.1.%'" | Select IPAddress -first 10

IPAddress
---------
10.1.91.3
10.1.91.4
10.1.91.1
10.1.91.5
10.1.91.6
10.1.91.2
10.1.27.45
10.1.27.41
10.1.72.9
10.1.27.61


PS C:\>


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>