<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jared Heinrichs &#187; Windows Command Line</title>
	<atom:link href="http://jaredheinrichs.com/category/operating-system/windows-command-line/feed" rel="self" type="application/rss+xml" />
	<link>http://jaredheinrichs.com</link>
	<description>A Winnipeg &#34;How to&#34; Blog on Software and Technology</description>
	<lastBuildDate>Thu, 09 Feb 2012 15:35:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to script the VPN connection to VPN server</title>
		<link>http://jaredheinrichs.com/how-to-script-the-vpn-connection-to-vpn-server.html</link>
		<comments>http://jaredheinrichs.com/how-to-script-the-vpn-connection-to-vpn-server.html#comments</comments>
		<pubDate>Mon, 06 Jun 2011 15:25:56 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Windows Command Line]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/how-to-script-the-vpn-connection-to-vpn-server.html</guid>
		<description><![CDATA[Most of the posts that I have seen about scripting VPN connections refers to scripting the actual connection “settings” but not the “act” of starting the VPN connection. Scripting the VPN connection to the server requires that you have already &#8230; <a href="http://jaredheinrichs.com/how-to-script-the-vpn-connection-to-vpn-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Most of the posts that I have seen about scripting VPN connections refers to scripting the actual connection “settings” but not the “act” of starting the VPN connection.</p>
<p>Scripting the VPN connection to the server requires that you have already gone in on the workstation physically setup the VPN connection. It’s important that you know the full name of the VPN. In your VPN connections area you can verify what the name of the VPN is. In my example the name of VPN is “Fake Company VPN”.</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/06/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="How to script the VPN connection to VPN server 01" border="0" alt="How to script the VPN connection to VPN server 01" src="http://jaredheinrichs.com/wp-content/uploads/2011/06/image_thumb.png" width="242" height="352" /></a></p>
<p>Once you have verified that you have a connection and that it actually connects you can proceed.</p>
<p>We are going to be using the built in command “Raddial”. If we type “rasdial /?” at the command prompt we would get this:</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/06/image1.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="How to script the VPN connection to VPN server 02" border="0" alt="How to script the VPN connection to VPN server 02" src="http://jaredheinrichs.com/wp-content/uploads/2011/06/image_thumb1.png" width="550" height="145" /></a></p>
<p>This command should be pretty straight forward. The only thing that might be a bit confusing is that “entryname” should be identical to what ever you called the VPN connection during it’s setup. In my case I called it “Fake Company VPN”. Because the name has spaces in it we MUST use apostrophe’s.</p>
<p>Open “notepad” and enter the information as such. We are going to be using the command “Rasdial” to script the connection to the server. Please fill in the information as it applies to you and the VPN connection.</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/06/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="How to script the VPN connection to VPN server 03" border="0" alt="How to script the VPN connection to VPN server 03" src="http://jaredheinrichs.com/wp-content/uploads/2011/06/image_thumb2.png" width="547" height="102" /></a></p>
<p>Save the contents in Notepad as “vpn-connection.bat”. You’re done! You can now use this script in schedule tasks.</p>
<p>Here’s what the connection will look like from the command prompt view.</p>
<p><a href="http://jaredheinrichs.com/wp-content/uploads/2011/06/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="How to script the VPN connection to VPN server 03" border="0" alt="How to script the VPN connection to VPN server 03" src="http://jaredheinrichs.com/wp-content/uploads/2011/06/image_thumb3.png" width="434" height="83" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-to-script-the-vpn-connection-to-vpn-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to turn on auto-complete in the command prompt CMD</title>
		<link>http://jaredheinrichs.com/how-to-turn-on-auto-complete-in-the-command-prompt-cmd.html</link>
		<comments>http://jaredheinrichs.com/how-to-turn-on-auto-complete-in-the-command-prompt-cmd.html#comments</comments>
		<pubDate>Fri, 12 Jun 2009 16:28:07 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Windows Command Line]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/how-to-turn-on-auto-complete-in-the-command-prompt-cmd.html</guid>
		<description><![CDATA[How sweet is the autocomplete Do you use the command prompt on a daily basis? If you do, then this tip is definitely for you! I recently found out that there is a way to turn on auto-complete for the &#8230; <a href="http://jaredheinrichs.com/how-to-turn-on-auto-complete-in-the-command-prompt-cmd.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>How sweet is the autocomplete</h3>
<p>Do you use the command prompt on a daily basis? If you do, then this tip is definitely for you! I recently found out that there is a way to turn on auto-complete for the command prompt via a simple registry hack. So that means if you are typing in a long path, simply type in the first few letters and then press TAB to auto-complete.</p>
<p>For example, if I am typing in <em><strong>C:\Documents and Settings\</strong></em>, I would just need to type in <strong><em>C:\Doc</em></strong> and then press the TAB key. </p>
<p>As you can see, there is only one option that starts with “doc”, so it’s automatically filled along with quotes since it has spaces in the path! Now that’s pretty neat. I always loved using auto-complete in Windows Explorer or even in Open and Save dialogs, but never knew it could be done in the command prompt also.</p>
<p>You can also browse through the different folders and files in a directory by simply pressing the <strong>TAB key</strong>. So if you type in C:\ and then keep pressing the tab key, you will be able to cycle through all the folders and files in that path in alphabetical order, i.e. <em><strong>C:\Documents and Settings</strong></em>, <strong><em>C:\Program Files\</em></strong>, etc. </p>
<h4>How to enable auto-complete for command prompt</h4>
<ol>
<li>Click on Start, then Run and type in <strong>regedit</strong> </li>
<li>Navigate to the following registry key: <strong><em>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor</em></strong> </li>
<li>Check to see if you have the following keys in the registry. “CompletionChar” &amp; “PathCompletionChar”. </li>
<li>If they aren’t there you are going to need to create two DWORD items and name them “CompletionChar” &amp; “PathCompletionChar”. </li>
<li>“CompletionChar” should be a hex value data of 9. </li>
<li>“PathCompletionChar” value data should be a HEX value of 40. </li>
</ol>
<p>Now close regedit and open the command prompt. Start typing in a partial path and then press TAB to auto-complete it! Pretty sweet eh! Great for anyone who has to work with the command prompt a lot. Enjoy!</p>
<h3>Second way to turn on auto-complete in the command prompt:</h3>
<p>1.) Open a text editor and copy this info into the file.</p>
<blockquote><pre class="csharpcode">Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
<span class="str">&quot;CompletionChar&quot;</span>=dword:00000040
<span class="str">&quot;DefaultColor&quot;</span>=dword:00000000
<span class="str">&quot;EnableExtensions&quot;</span>=dword:00000001
<span class="str">&quot;PathCompletionChar&quot;</span>=dword:00000040</pre>
</blockquote>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>2.) Save the file as auto-complete.reg</p>
<p>3.) Close any command windows that are open and then re-open the command prompt.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-to-turn-on-auto-complete-in-the-command-prompt-cmd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Enable / Disable / List Network Interfaces from Command Line</title>
		<link>http://jaredheinrichs.com/how-to-enable-disable-list-network-interfaces-from-command-line.html</link>
		<comments>http://jaredheinrichs.com/how-to-enable-disable-list-network-interfaces-from-command-line.html#comments</comments>
		<pubDate>Sun, 29 Mar 2009 13:56:54 +0000</pubDate>
		<dc:creator>Jared Heinrichs</dc:creator>
				<category><![CDATA[Windows Command Line]]></category>

		<guid isPermaLink="false">http://jaredheinrichs.com/?p=373</guid>
		<description><![CDATA[My favorite “netsh” commands. Show all interfaces netsh interface show interface Enable a Disabled NIC using Command Line netsh interface set interface &#34;Local Area Connection&#34; enabled Disable a Enabled NIC using Command Line netsh interface set interface &#34;Local Area Connection&#34; &#8230; <a href="http://jaredheinrichs.com/how-to-enable-disable-list-network-interfaces-from-command-line.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>My favorite “netsh” commands.</h3>
<h4>Show all interfaces</h4>
<blockquote><pre>netsh interface show interface</pre>
</blockquote>
<h4>Enable a Disabled NIC using Command Line</h4>
<blockquote>
<pre>netsh interface set interface &quot;Local Area Connection&quot; enabled</pre>
</blockquote>
<h4>Disable a Enabled NIC using Command Line</h4>
<blockquote>
<pre>netsh interface set interface &quot;Local Area Connection&quot; disabled</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jaredheinrichs.com/how-to-enable-disable-list-network-interfaces-from-command-line.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

