Is there a way to silently delete or disconnect an open session using CMD?
<p>I have some open sessions that I can list using:</p>

<pre><code>net session
</code></pre>

<p>I can delete the specified session with:</p>

<pre><code>net session \\192.168.1.101 /DELETE
</code></pre>

<p>However this commands requires me to enter either Y or N to proceed. I couldn't find any option to force the deletion.</p>

<p>I'm playing around with command line tricks but none of them works.
This was my best chance:</p>

<pre><code>echo Y | net session \\192.168.1.101 /DELETE
</code></pre>

<p>Any ideas?</p>