<p>Got it:</p>
<pre><code class="lang-auto">SELECT * from Win32_IP4RouteTable
WHERE ((Mask='0.0.0.0' AND NextHop LIKE '10.31.%'))
</code></pre>
<p>Works perfect. Seems the sample is either wrong or at least not applicable to Windows Server 2008 R2</p>