<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Windows Networking &amp;amp; Remote Access</title><subtitle type="html">by: Rob Williams [MVP]</subtitle><id>http://msmvps.com/blogs/robwill/atom.aspx</id><link rel="alternate" type="text/html" href="http://msmvps.com/blogs/robwill/default.aspx" /><link rel="self" type="application/atom+xml" href="http://msmvps.com/blogs/robwill/atom.aspx" /><generator uri="http://communityserver.org" version="4.0.30619.63">Community Server</generator><updated>2008-05-09T16:34:00Z</updated><entry><title>Determine if the Terminal Server console session is in use, from a command line</title><link rel="alternate" type="text/html" href="/blogs/robwill/archive/2008/06/12/determine-if-the-terminal-server-console-session-is-in-use-from-a-command-line.aspx" /><id>/blogs/robwill/archive/2008/06/12/determine-if-the-terminal-server-console-session-is-in-use-from-a-command-line.aspx</id><published>2008-06-12T11:58:00Z</published><updated>2008-06-12T11:58:00Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;A couple of times lately I have been asked how to determine form a command line, if the console session is currently in use on a Windows 2003 server. One option is as as follows:&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;From a connected TS/RDP session you can run &lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;set sessionname&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;This will return “console”&amp;nbsp;or “RDP-Tcp#X” where X is the session number&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;However it only shows “console” if the user is at the physical console, not if they have remotely connected to the console session using mstsc /console&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;A better option is to use the query command:&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;query session&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;This will return a list similar to:&lt;br style="mso-special-character:line-break;" /&gt;&lt;br style="mso-special-character:line-break;" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;SESSIONNAME&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;USERNAME&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ID&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;STATE&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;TYPE&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;DEVICE&lt;br /&gt;rdp-tcp#7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bob &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp;Active &amp;nbsp; &amp;nbsp;rdpwd&lt;br /&gt;rdp-tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;65536 &amp;nbsp; &amp;nbsp; &amp;nbsp;Listen &amp;nbsp; rdpwd&lt;br /&gt;rdp-tcp#2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sue &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;Active &amp;nbsp; &amp;nbsp;rdpwd&lt;br /&gt;rdp-tcp#2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tom &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;Active &amp;nbsp; &amp;nbsp;rdpwd&lt;br /&gt;console &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp;Conn &amp;nbsp; &amp;nbsp; wdcon&lt;br /&gt;&lt;br /&gt;In this list, &amp;quot;Conn&amp;quot; indicates someone is &lt;u&gt;remotely&lt;/u&gt; connected to the console session, and ID &amp;quot;0&amp;quot; is the user using the console session.&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;If Bob were at the physical console it would look like the following:&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;SESSIONNAME&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;USERNAME&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ID&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;STATE&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;TYPE&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;DEVICE&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;console &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Bob &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp;Active &amp;nbsp;&amp;nbsp;wdcon&lt;br /&gt;rdp-tcp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;65536 &amp;nbsp; &amp;nbsp; &amp;nbsp;Listen &amp;nbsp; rdpwd&lt;br /&gt;rdp-tcp#2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sue &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;Active &amp;nbsp; &amp;nbsp;rdpwd&lt;br /&gt;rdp-tcp#2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tom &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;Active &amp;nbsp; &amp;nbsp;rdpwd&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;Note: the query command only returns the console session information if run as an admin. Other session information is available to users.&lt;br style="mso-special-character:line-break;" /&gt;&lt;br style="mso-special-character:line-break;" /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;Should you want to run the command on a remote server, you can use Sysinternal’s/Microsoft’s free PSexec command line utility. If logged in as a domain admin the basic syntax would be:&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;PSexec&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;\ServerName&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;query&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;session&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;Detailed use and syntax of PSexec can be found:&lt;/span&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:9pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-bidi-font-family:Arial;"&gt;&lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx" target="_blank"&gt;http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1634389" width="1" height="1"&gt;</content><author><name>RobWill</name><uri>http://msmvps.com/members/RobWill/default.aspx</uri></author></entry><entry><title>Remote support made easy</title><link rel="alternate" type="text/html" href="/blogs/robwill/archive/2008/05/11/remote-support-made-easy.aspx" /><id>/blogs/robwill/archive/2008/05/11/remote-support-made-easy.aspx</id><published>2008-05-11T12:02:00Z</published><updated>2008-05-11T12:02:00Z</updated><content type="html">&lt;p&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;There are dozens of utilities available that allow you to support remote clients including Remote Desktop, Remote Assistance, VNC, Dameware, GoToMyPC, LogMeIn, and WebEx, only to name a few. Some of these are free, some are expensive, some offer encryption, and some require&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;router modifications at either the host or client site. I recently signed up for the new Citrix&lt;/font&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt; &lt;a class="" href="https://express.gotoassist.com/" target="_blank"&gt;GoToAssist Express&lt;/a&gt;&lt;/font&gt;&lt;font face="verdana,geneva"&gt;&lt;font size="2"&gt;&lt;font color="#000080"&gt;&lt;a class="" href="https://express.gotoassist.com/" target="_blank"&gt; Beta Test&lt;/a&gt; which seems to offer all of the good features and more, of the aforementioned, and with none of the aggravations.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Though this service will not be free, it is well worth trying out, and consider adopting in the future. It is extremely easy to use by both the support technician and client, and offers secure access&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;with good performance. It is ideally suited in my opinion for supporting non-enterprise clients for which you do not have preconfigured access to the remote site.&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;The session is started by selecting &amp;quot;start a support session&amp;quot; from a task bar icon. You are provided with a support session number and the option to automatically generate an e-mail to send to the client, or just read it to them over the phone. The client then connects to the &lt;/font&gt;&lt;a href="http://www.fastsupport.com/"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;www.fastsupport.com&lt;/font&gt;&lt;/a&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt; web site, enters their session ID, which then initiates running a tiny app (less than 200K). The client then has to approve your request to connect, and at any time they have the ability to end the session. I was impressed with how well all the features worked, and the performance. &lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/Session.jpg" target="_blank"&gt;&lt;img height="73" alt="" hspace="150" src="http://msmvps.com/blogs/robwill/Images/Session-Thumb.jpg" width="92" border="0" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;FONT-FAMILY:Calibri;"&gt;&lt;font face="Verdana" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Some of the features included, that I felt were important:&lt;/font&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:1.125in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Client ability to control connections (clientvsecurity)&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Very good performance&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="Verdana" color="#000080" size="2"&gt;No router reconfiguration (port forwarding) at either site&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;It is a shared session, ideal for training purposes&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Either the client or the support technicians sessions can be shared, and flipping back and forth between them is very easy&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Drawing tools allow pointing out features and options to clients&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Chat session available during the connection&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Bi-directional file transfers&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Diagnostic tools which can be run from the support screen to gather information about the client PC. This includes 10 pages of information such as hardware, software, and status information, which can also be saved to a local file for reviewing&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="Verdana" color="#000080" size="2"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/Diag.jpg" target="_blank"&gt;&lt;img height="52" alt="" hspace="150" src="http://msmvps.com/blogs/robwill/Images/Diag-Thumb.jpg" width="84" border="0" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:1.125in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;A notes section to allow you to create notes to be saved with the session information&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;The ability to re-boot the PC remotely, not only to the same session, but also to reboot to safe mode and automatically re-connect the session while in safe mode&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;- &amp;quot;very cool&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Calibri;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;There is an option to configure the client machine to allow unattended support sessions, i.e connecting without the client preset. Installation of this feature, again requires approval by the client. Like Remote Desktop, these sessions lock the screen on the client PC. One nice feature is the client can refuse the connection, if they are in the middle of a project.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1619596" width="1" height="1"&gt;</content><author><name>RobWill</name><uri>http://msmvps.com/members/RobWill/default.aspx</uri></author></entry><entry><title>LMHosts and Hosts files</title><link rel="alternate" type="text/html" href="/blogs/robwill/archive/2008/05/10/lmhosts-and-hosts-files.aspx" /><id>/blogs/robwill/archive/2008/05/10/lmhosts-and-hosts-files.aspx</id><published>2008-05-11T01:01:00Z</published><updated>2008-05-11T01:01:00Z</updated><content type="html">&lt;p&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;There are two files in the %systemroot%\system32\drivers\etc&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;directory that can be used for name resolution. The Hosts file, used for DNS name resolution, and the LMHosts.sam file used for NetBIOS name resolution. In an age where DNS dominates your network both locally and throughout the Internet, these two files are seldom ever used, but they can be very useful in a few situations. Both are simple text files that match names to IP addresses, and are very easy to create and implement. Most people are familiar with these files, but are often frustrated when they do not work as expected. This is usually due to the fact that they have some very simple, but specific requirements, for them to work at all.&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-WEIGHT:bold;FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;LMHosts (NetBIOS names):&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;The primary use today for an LMHosts file, is for name resolution over a VPN. If DNS is configured on the host and client machines there should be no need of static text files for resolving names, but it does work well, and many folks uses them as a dependable simple solution. The catch is there are a few gotcha&amp;#39;s you need to be aware of:&lt;/font&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;font size="2"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;The LMHosts file in it&amp;#39;s default form, is named lmhosts.sam&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;.sam represents &lt;/span&gt;&lt;span style="FONT-WEIGHT:bold;FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;sam&lt;/span&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;ple. If you are planning on using this file it needs to be saved without a file extension -&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;lmhosts. Be careful if using a text editor like NotePad as it will add a .txt file extension to the name. The safest method is to save the file using quotes, &amp;quot;lmhosts&amp;quot; to assure no extensions are added.&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Text following a # in the LMHosts file is a comment and can be ignored or deleted.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;font size="2"&gt;A typical entry would look like:&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;192.168.100.101 &amp;nbsp; &amp;nbsp; &amp;nbsp;COMPUTERNAME&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;#PRE &amp;nbsp; &amp;nbsp;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#my notes&lt;/font&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;When making a new entry you must hit enter at the end of the line, which adds a &amp;quot;carriage return&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;Use the Tab key between items in each line rather than spaces (recommended but not necessary), but there must be a space.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;Though it is not needed, adding the #PRE parameter or extension will load the entry into the local NetBIOS name cache when the computer boots. This allows for a slightly faster resolving of the name, before it has been added to the cache.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;Most entries such as #PRE, #DOM, DOMAIN names and such are case sensitive. Always use uppercase to be safe. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;It is a good idea to add the domain name as well. This requires two lines, and uses extremely critical formatting. A sample would be:&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;192.168.100.10&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;DCNAME&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#PRE&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#DOM:YOUR-DOMAIN&lt;br /&gt;192.168.100.10&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;quot;YOUR-DOMAIN&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;\0x1b&amp;quot;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#PRE&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 0.75in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;There must be exactly 20 characters, including spaces, between the quotes in &amp;quot;YOUR-DOMAIN&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;\0x1b&amp;quot;, and the spaces need to be between the domain name and the \0x1b. The domain name used is the NetBIOS name, not the FQDN. If your domain name exceeds 15 characters, you must truncate it at the 15th character, it will still work.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0in 0.75in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;span style="FONT-SIZE:10pt;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;If you find this last step tedious, the University Of Sait Louis has a little Java script that will create these two lines for you: &lt;/font&gt;&lt;/span&gt;&lt;a href="http://bflinux.slu.edu/LSI/tools/lmhosts.html"&gt;&lt;span style="FONT-SIZE:11pt;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;http://bflinux.slu.edu/LSI/tools/lmhosts.html&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 0.75in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;span style="FONT-WEIGHT:bold;"&gt;Hosts (DNS names&lt;/span&gt;):&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;The Hosts file today seems to be more used for blocking unwanted web sites. This is done by simply entering the website address and substituting the IP address with the localhost IP address such as:&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;127.0.0.1&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;a href="http://www.unwantedsite.com/"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;www.unwantedsite.com&lt;/font&gt;&lt;/a&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#advertising site&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;There are subscription services that will actually update your Hosts file, according to a schedule, with a list of known unwanted sites. &lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;Another handy use of the Hosts file is to create abbreviations for your own use. For example quick access to a website like Google can be achieved adding an abbreviation like &amp;#39;G&amp;quot;, or your firewall with &amp;#39;F&amp;quot;, or I frequently uses it for accessing client sites with remote desktop using 3 letter acronyms such as ACL for Acme Corp Ltd. :&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;64.233.187.99&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;G&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#Google&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;192.168.100.254&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;F&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#my firewall&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;123.123.123.123&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ACL&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;#Acme Corp Ltd &lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;Most of the rules that apply to the LMHosts file, apply to the Hosts file as well:&lt;/font&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;The Hosts file already has no file extension, so there is no need to change it like the LMHosts file. Just be careful when editing you don&amp;#39;t accidentally add one such as .txt when using NotePad or a similar editor.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Text following a # in the Hosts file is a comment, and can be ignored or deleted&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;font size="2"&gt;A typical entry would look like:&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;123.123.123.123 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/font&gt;&lt;a&gt;&lt;font face="verdana,geneva" color="#000080"&gt;ftp.acme.com&lt;/font&gt;&lt;/a&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp; #company FTP site&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;When making a new entry you must hit enter at the end of the line, which adds a &amp;quot;carriage return&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;Use the Tab key between items in each line rather than spaces (recommended but not necessary), but there must be a space.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;Keep in mind when editing these files you can run into conflicts, or ineffective changes if you do not reboot or purge the local name caches. To clear the NetBIOS cache ( and PREload), at a command line enter (R is case sensitive):&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;nbtstat&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;-R&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;To clear the DNS cache, at a command line enter:&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;ipconfig&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;/flushdns&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;For the record, the Hosts file can also be used for IPv6 addressing. Vista for example includes the IPV6 localhost entry, by default:&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:10pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080"&gt;::1&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;localhost&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1619267" width="1" height="1"&gt;</content><author><name>RobWill</name><uri>http://msmvps.com/members/RobWill/default.aspx</uri></author></entry><entry><title>VPN client name resolution</title><link rel="alternate" type="text/html" href="/blogs/robwill/archive/2008/05/10/vpn-client-name-resolution.aspx" /><id>/blogs/robwill/archive/2008/05/10/vpn-client-name-resolution.aspx</id><published>2008-05-11T00:39:00Z</published><updated>2008-05-11T00:39:00Z</updated><content type="html">&lt;p&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;The most common problem reported with a VPN client is &amp;quot; I cannot browse the remote network&amp;quot;. Most often if one thinks about the need to browse over a VPN connection, you quickly realize it is seldom necessary at all. You are using a VPN to access a known remote resource to which the location is well documented.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;It can easily be accessed using the IP address or computer name.&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Within the confines of a LAN, NetBIOS name broadcasts are the primary method for registering and resolving of names, for browsing purposes. Because broadcast packets are not routable, they are not forwarded over the VPN, and thus browsing is not possible.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;With the exception of a few routers offering services to forward NetBIOS information over the VPN tunnel, the only possibility for browsing the remote network is using two WINS servers as outlined in option 3 below. &lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;There are numerous ways to access a remote machine as listed below. All will work, however for the simplest and most reliable solution use the IP address. If you want to access a remote network using names, by choice, or because the resource is on a device with a dynamic IP, I would recommend you jump to the last option, and use DNS. &lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol style="MARGIN-TOP:0in;FONT-SIZE:11pt;MARGIN-BOTTOM:0in;MARGIN-LEFT:1.125in;DIRECTION:ltr;FONT-FAMILY:Arial;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;IP address&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;LMHOSTS files&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;(HOST Files)&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;WINS (Windows Internet Name Service)&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;DNS (Domain Name Service) &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;1) Most often the resource is located on a server with a static IP and therefore it can easily be accessed using a combination of the machine IP and the share name, such as &lt;/font&gt;&lt;/span&gt;&lt;a&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;\\192.168.123.123\SharName&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;This is very simple, reliable, and does not rely on other services or applications. Should you need to map a drive, that too can be easily done at a command line or in a script using&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Net Use Z: &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;a&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;\\192.168.123.123\ShareName&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 0.75in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;2) Assuming again the remote device is using a static IP, dependable name resolution&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;to allow access such as &lt;/font&gt;&lt;/span&gt;&lt;a&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;\\ServerName\ShareName&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt; can be done with the LMHosts file.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Located in %systemroot%\syetem32\drivers\etc folder, the LMHosts file is a list stored on the local computer basically mapping NetBIOS (computer) names to IP addresses.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Though this works extremely well, it requires maintaining an updated name/IP list. There is also the Hosts file which is similar, but it is intended for DNS Fully Qualified Domain Names, rather than NetBIOS names. The LMHosts file, is a simple text file, but it has&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;very specific configuration rules. See the following Microsoft documents for details:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;This blog site, follow article under &amp;quot;&lt;a class="" href="http://msmvps.com/blogs/robwill/archive/2008/05/10/lmhosts-and-hosts-files.aspx" target="_blank"&gt;LMHosts and Hosts files&lt;/a&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;a href="http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/cnet/cnfd_lmh_qxqq.mspx?mfr=true"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/cnet/cnfd_lmh_qxqq.mspx?mfr=true&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;a href="http://support.microsoft.com/kb/q180094/"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;http://support.microsoft.com/kb/q180094/&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;3) If you have A WINS server located at the RRAS server site, it can be used for dynamic NetBIOS name resolution (i.e. it does not rely on static IP&amp;#39;s). In order to do so the VPN client needs two options configured. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;The client must be assigned the WINS server IP address. This can be done manually on the client, or assigned through DHCP by the RRAS server. If using DHCP, the RRAS server will not supply the WINS address from the DHCP scope options. The WINS server IP must be assigned to the RRAS server&amp;#39;s network adapter, and it will then be inherited by the VPN client when it connects.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;On the VPN client&amp;#39;s network adapter , under TCP/IP properties, advanced, WINS, you also need to enable NetBIOS over TCP/IP.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 0.75in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font color="#000080"&gt;&lt;font face="verdana,geneva"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;WINS is also your only option for browsing the remote network. In order for this to work, you will need replicating WINS servers configured at both ends of the VPN tunnel. Browsing is still not 100% reliable using the two WINS server option.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 0.75in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/WINS.jpg" target="_blank"&gt;&lt;img height="99" alt="" hspace="200" src="http://msmvps.com/blogs/robwill/Images/WINS-Thumb.jpg" width="83" border="0" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 0.75in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="Verdana" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;4) All Windows 2000 and 2003 active directory environments have DNS configured. Thus, for name resolution of devices with dynamic IP&amp;#39;s, it is generally the best bet. Again there are two requirements for using DNS:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.375in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Like WINS, the client must be assigned the DNS server IP address. This can be done manually on the client, or assigned through DHCP by the RRAS server. Once again if using DHCP, the RRAS server will not supply the DNS address from the DHCP scope options. The DNS server IP must be assigned to the RRAS server&amp;#39;s network adapter, and it will then be inherited by the VPN client when it connects.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:navy;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;On the VPN client&amp;#39;s network adapter, under TCP/IP properties, advanced, DNS, you also need to add the domain DNS suffix, such as MyDomain.local in the &amp;quot;DNS suffix for this connection&amp;quot; box.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/DNS.jpg" target="_blank"&gt;&lt;img height="99" alt="" hspace="170" src="http://msmvps.com/blogs/robwill/Images/DNS-Thumb.jpg" width="83" border="0" /&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 1.125in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:navy;FONT-FAMILY:Arial;"&gt;&lt;font face="verdana,geneva" color="#000080" size="2"&gt;Hopefully at least one of these options will assist you with name resolution using your VPN client.&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1619258" width="1" height="1"&gt;</content><author><name>RobWill</name><uri>http://msmvps.com/members/RobWill/default.aspx</uri></author></entry><entry><title>RRAS DHCP options</title><link rel="alternate" type="text/html" href="/blogs/robwill/archive/2008/05/09/rras-dhcp-options.aspx" /><id>/blogs/robwill/archive/2008/05/09/rras-dhcp-options.aspx</id><published>2008-05-09T19:34:00Z</published><updated>2008-05-09T19:34:00Z</updated><content type="html">&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;I am frequently asked about assigning IP&amp;#39;s to Windows VPN clients though RRAS (Routing and Remote Access Service).&amp;nbsp; Most often this is done using DHCP, but there are several ways to handle DHCP within RRAS, and included are a couple of features that may seem a little unusual or unexpected.&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;The first option, just to get it out of the way as it is not often implemented, is to assign static IP&amp;#39;s to the VPN client. This is done through the user&amp;#39;s profile in Active&amp;nbsp;Directory on the Dial-In page, under “Assign a Static IP”. Should this be grayed out, it is due to the domain functional level being &amp;quot;Windows 2000 mixed&amp;quot;. Look into the repercussions of raising the DFL before doing so. For the record, it is not possible to use DHCP reservations to assign static IP&amp;#39;s to VPN clients.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/RRAS-Static.jpg" target="_blank"&gt;&lt;img height="96" alt="" hspace="200" src="http://msmvps.com/blogs/robwill/Images/RRAS-Static-thumb.jpg" width="80" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:0.75in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;DHCP within RRAS is handled in numerous ways: through a DHCP relay agent,&amp;nbsp;using RRAS itself with or without a static address pool, or within the NAT configuration.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:1.125in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;To use the DHCP relay, the DHCP server must reside on a different device than the RRAS server. It can be a router or any other Windows server. Installing the DHCP relay option is very straightforward. Right click on&amp;nbsp;&amp;quot;general&amp;quot; under IP routing in the RRAS console, choose new routing protocol, and DHCP relay agent. Once the relay agent is created, right click on it, choose new interface, generally choose the LAN server adapter, and the defaults. Optionally you can assign the IP of the DHCP server by right clicking on the DHCP relay agent again, choose properties, and add the DHCP server&amp;#39;s IP.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 1.125in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/RRAS-Relay.jpg" target="_blank"&gt;&lt;img height="97" alt="" hspace="100" src="http://msmvps.com/blogs/robwill/Images/RRAS-Relay-thumb.jpg" width="143" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 1.125in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:1.125in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;RRAS&amp;nbsp;itself can assign DHCP addresses. This is set under the IP tab found by right clicking on the &lt;/span&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;server name and choosing properties&lt;/span&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;. &lt;/span&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;DHCP is selected by default&lt;/span&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;. With this option enabled, RRAS will select an IP from within the local&amp;nbsp;DHCP service scope&amp;#39;s address pool. Alternatively you can select static address pool and &lt;/span&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;define a range of addresses&lt;/span&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt; from which RRAS can draw an IP for the VPN client. If DHCP is not enabled on the server, RRAS will assign an APIPA address in the 169.254.0.0/16 subnet which will still allow client to connect to the server, but routing will need to be configured to reach the LAN. &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 1.125in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/RRAS-Pool.jpg" target="_blank"&gt;&lt;img height="97" alt="" hspace="100" src="http://msmvps.com/blogs/robwill/Images/RRAS-Pool-thumb.jpg" width="165" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in 0in 0in 1.125in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;MARGIN-BOTTOM:0in;MARGIN-LEFT:1.125in;DIRECTION:ltr;unicode-bidi:embed;"&gt;
&lt;li style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;A final option is to use the DHCP allocator within the RRAS NAT configuration, but this does not apply to VPN clients, so I will not elaborate at this time.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p style="MARGIN-TOP:0px;MARGIN-BOTTOM:0px;VERTICAL-ALIGN:middle;COLOR:#1f497d;"&gt;&lt;span style="FONT-SIZE:11pt;FONT-FAMILY:Verdana;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&lt;a class="" href="http://www.lan-2-wan.com/Added%20Images/Blog/RRAS-NAT.jpg" target="_blank"&gt;&lt;img height="94" alt="" hspace="210" src="http://msmvps.com/blogs/robwill/Images/RRAS-NAT-thumb.jpg" width="126" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;One of the &amp;quot;unexpected&amp;quot; features of RRAS and DHCP occurs when the RRAS service is configured and started. Assuming the DHCP server is available, it reserves blocks of 10 IP&amp;#39;s for the VPN clients, with the first IP being assigned to the RRAS server itself. If enough VPN clients connect simultaneously to exceed the 10 reservations, another block of 10 IP&amp;#39;s is added. It is often disconcerting to see 10 addresses assigned in the DHCP address lease list, when there are no current connections. The RRAS leases can be distinguished by the RAS label in the &amp;quot;Unique ID&amp;quot; column. Should your available DHCP leases be limited, you can reduce the default block size of reserved IP’s by editing or adding the following registry key: HKEY_LOCAL_ MACHINE\SYSTEM\CurrentControlSet\Services\ RemoteAccess\Parameters\IP &amp;nbsp;&amp;nbsp;&amp;nbsp;Change the DWord: InitialAddressPoolSize from the default value of 10 to your desired limit. &lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Verdana;"&gt;Another thing to point out is RRAS will not assign VPN clients additional connection information such as DNS or WINS address addressing, from the DHCP scope options. In order for these to be automatically added to the VPN client&amp;#39;s virtual adapter&amp;#39;s properties, they must be added to the RRAS server&amp;#39;s own network adapter&amp;#39;s configuration. They are then inherited by the VPN client.&lt;/p&gt;
&lt;p style="FONT-SIZE:11pt;MARGIN:0in;COLOR:#1f497d;FONT-FAMILY:Calibri;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1618431" width="1" height="1"&gt;</content><author><name>RobWill</name><uri>http://msmvps.com/members/RobWill/default.aspx</uri></author></entry></feed>