<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Set Your IP Address Via Batch File</title>
	<atom:link href="http://samanathon.com/set-your-ip-address-via-batch-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://samanathon.com/set-your-ip-address-via-batch-file/</link>
	<description>Windows Tips, Tricks and Hacks</description>
	<pubDate>Tue, 07 Oct 2008 07:57:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: siNung</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-69342</link>
		<dc:creator>siNung</dc:creator>
		<pubDate>Sat, 09 Aug 2008 02:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-69342</guid>
		<description>how to set / change ip address randomly in batch mode :)

rem [new ip address]
rem [old varip is "set varip=65.88.48.77"]
rem [change to]

set varip=65.88.48.

rem [other same line]

call xset32 VARIPNEW RANDOM 0 255

rem [old netsh int ip set address name = "Local Area Connection" source = static addr = %varip% mask = %varsm%]

netsh int ip set address name = "Local Area Connection" source = static addr = %varip%%VARIPNEW% mask = %varsm%

rem [etc]

==
note : xset32/xset from hxxp://xset.tripod.com/latest.htm</description>
		<content:encoded><![CDATA[<p>how to set / change ip address randomly in batch mode <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>rem [new ip address]<br />
rem [old varip is "set varip=65.88.48.77"]<br />
rem [change to]</p>
<p>set varip=65.88.48.</p>
<p>rem [other same line]</p>
<p>call xset32 VARIPNEW RANDOM 0 255</p>
<p>rem [old netsh int ip set address name = "Local Area Connection" source = static addr = %varip% mask = %varsm%]</p>
<p>netsh int ip set address name = &#8220;Local Area Connection&#8221; source = static addr = %varip%%VARIPNEW% mask = %varsm%</p>
<p>rem [etc]</p>
<p>==<br />
note : xset32/xset from hxxp://xset.tripod.com/latest.htm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: majorcodec</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-69330</link>
		<dc:creator>majorcodec</dc:creator>
		<pubDate>Fri, 08 Aug 2008 18:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-69330</guid>
		<description>when i run the batch program "Set Your IP Address Via Batch File" no ip address and subnet musk appear. any idea or solution?</description>
		<content:encoded><![CDATA[<p>when i run the batch program &#8220;Set Your IP Address Via Batch File&#8221; no ip address and subnet musk appear. any idea or solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajkumar</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-69027</link>
		<dc:creator>rajkumar</dc:creator>
		<pubDate>Wed, 06 Aug 2008 13:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-69027</guid>
		<description>hi 

iam useing 192.168.1.1 and subnetmask is 255.255.255.0 and for internet is 9.2.2.2 and subnetmask is 255.0.0.0 


i like to add the second ip through netsh command</description>
		<content:encoded><![CDATA[<p>hi </p>
<p>iam useing 192.168.1.1 and subnetmask is 255.255.255.0 and for internet is 9.2.2.2 and subnetmask is 255.0.0.0 </p>
<p>i like to add the second ip through netsh command</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Ellis</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-68621</link>
		<dc:creator>Tim Ellis</dc:creator>
		<pubDate>Mon, 04 Aug 2008 17:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-68621</guid>
		<description>Great work all i now need is to specify a printer</description>
		<content:encoded><![CDATA[<p>Great work all i now need is to specify a printer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Razzor</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-46743</link>
		<dc:creator>Razzor</dc:creator>
		<pubDate>Mon, 19 May 2008 17:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-46743</guid>
		<description>VISTA UPDATE!!!!!

FINALLY! I have worked out how to get it to work in vista!!


@ECHO OFF

set varip=65.88.48.77
set varsm=255.255.255.224
set vargw=65.88.48.65
set vardns1=66.78.202.254
set vardns2=66.78.210.254

REM ***** You don’t need to change anything below this line! ******

ECHO This fanciness is brought to you by Saman Sadeghi!
ECHO Setting IP to static
netsh int ipv4 set address name = "Wireless Network Connection" source = static address = %varip% mask = %varsm%

ECHO Setting IP Address and Subnet Mask
netsh int ipv4 set address name = "Wireless Network Connection" address = %varip% mask = %varsm% gateway = %vargw% gwmetric = 1

ECHO Setting Primary DNS
netsh int ip set dns name = "Wireless Network Connection" source = static addr = %vardns1%

ECHO Setting Secondary DNS
netsh int ip add dns name = "Wireless Network Connection" addr = %vardns2%

ECHO Here are the new settings for %computername%:
netsh int ip show config

pause

The change is quite simple...the problem seems to lie in vista's inability to set the ip to static, and assign the ip address at the same time. So all you have to do is set up the ip to static first, then set the ip...very strange

Note that your static ip is not displayed when shown, however it is set.</description>
		<content:encoded><![CDATA[<p>VISTA UPDATE!!!!!</p>
<p>FINALLY! I have worked out how to get it to work in vista!!</p>
<p>@ECHO OFF</p>
<p>set varip=65.88.48.77<br />
set varsm=255.255.255.224<br />
set vargw=65.88.48.65<br />
set vardns1=66.78.202.254<br />
set vardns2=66.78.210.254</p>
<p>REM ***** You don’t need to change anything below this line! ******</p>
<p>ECHO This fanciness is brought to you by Saman Sadeghi!<br />
ECHO Setting IP to static<br />
netsh int ipv4 set address name = &#8220;Wireless Network Connection&#8221; source = static address = %varip% mask = %varsm%</p>
<p>ECHO Setting IP Address and Subnet Mask<br />
netsh int ipv4 set address name = &#8220;Wireless Network Connection&#8221; address = %varip% mask = %varsm% gateway = %vargw% gwmetric = 1</p>
<p>ECHO Setting Primary DNS<br />
netsh int ip set dns name = &#8220;Wireless Network Connection&#8221; source = static addr = %vardns1%</p>
<p>ECHO Setting Secondary DNS<br />
netsh int ip add dns name = &#8220;Wireless Network Connection&#8221; addr = %vardns2%</p>
<p>ECHO Here are the new settings for %computername%:<br />
netsh int ip show config</p>
<p>pause</p>
<p>The change is quite simple&#8230;the problem seems to lie in vista&#8217;s inability to set the ip to static, and assign the ip address at the same time. So all you have to do is set up the ip to static first, then set the ip&#8230;very strange</p>
<p>Note that your static ip is not displayed when shown, however it is set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-42615</link>
		<dc:creator>Nicholas</dc:creator>
		<pubDate>Thu, 01 May 2008 00:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-42615</guid>
		<description>:???: 
I'm trying to create a completely touches imaging process using sysprep, wsname and netdom.  So far, I can successfully rename a computer based on a text file with MAC addr and comp name. I can also add it to the domain.  Do you know of a way to assign static IPs (via batch file) using a text file with MAC addresses or computer name and the appropriate IP address?</description>
		<content:encoded><![CDATA[<p> <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_confused.gif' alt=':???:' class='wp-smiley' /><br />
I&#8217;m trying to create a completely touches imaging process using sysprep, wsname and netdom.  So far, I can successfully rename a computer based on a text file with MAC addr and comp name. I can also add it to the domain.  Do you know of a way to assign static IPs (via batch file) using a text file with MAC addresses or computer name and the appropriate IP address?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bayram</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-41933</link>
		<dc:creator>bayram</dc:creator>
		<pubDate>Sat, 26 Apr 2008 16:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-41933</guid>
		<description>Very good! Just what i wanted.

Just one problem: how do you write a patch that will make my laptop obtain IP and DNS automatic?

Do you put 0.0.0.0?

Thank you
Bayram</description>
		<content:encoded><![CDATA[<p>Very good! Just what i wanted.</p>
<p>Just one problem: how do you write a patch that will make my laptop obtain IP and DNS automatic?</p>
<p>Do you put 0.0.0.0?</p>
<p>Thank you<br />
Bayram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdf</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-28009</link>
		<dc:creator>sdf</dc:creator>
		<pubDate>Fri, 11 Jan 2008 16:35:44 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-28009</guid>
		<description>:roll:  :wink:  :mrgreen:  :cool:  :razz:  :cry:  :lol:  :mad:  :sad:  :!:  :?:</description>
		<content:encoded><![CDATA[<p> <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=':wink:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_mad.gif' alt=':mad:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' />  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_question.gif' alt=':?:' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joanne</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-22950</link>
		<dc:creator>Joanne</dc:creator>
		<pubDate>Wed, 12 Dec 2007 16:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-22950</guid>
		<description>Problem I found was that my Local Area Connection was not name that.  

e.g. If Local Area Connection is called Sandra then the first line of this would have to be:

netsh int ip set address name = "Sandra" source = static addr = %varip% mask = %varsm%

Nice code....very much like  :smile:</description>
		<content:encoded><![CDATA[<p>Problem I found was that my Local Area Connection was not name that.  </p>
<p>e.g. If Local Area Connection is called Sandra then the first line of this would have to be:</p>
<p>netsh int ip set address name = &#8220;Sandra&#8221; source = static addr = %varip% mask = %varsm%</p>
<p>Nice code&#8230;.very much like  <img src='http://samanathon.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-17717</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 24 Oct 2007 20:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-17717</guid>
		<description>I know this is off topic but I am wondering if there is a way to create a .bat to modify a reg string for example ( HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Dhcp and modify the dependonservice ) Norton likes to put a entry in it. I want to creat a bat program that will remove the  SYMTDI entry out of it.   Any help would be great.</description>
		<content:encoded><![CDATA[<p>I know this is off topic but I am wondering if there is a way to create a .bat to modify a reg string for example ( HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Dhcp and modify the dependonservice ) Norton likes to put a entry in it. I want to creat a bat program that will remove the  SYMTDI entry out of it.   Any help would be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-14937</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Thu, 20 Sep 2007 17:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-14937</guid>
		<description>Do anyone have this for vista. It works with XP but not vista</description>
		<content:encoded><![CDATA[<p>Do anyone have this for vista. It works with XP but not vista</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwanna</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-14002</link>
		<dc:creator>Dwanna</dc:creator>
		<pubDate>Mon, 10 Sep 2007 18:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-14002</guid>
		<description>I've been at this all day. I have tried 3 different methods of setting a static ip in a network card on Vista. For some reason, every one of them runs without an error, but when I check the settings they have changed everything but the ip and mask. What am I missing here?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been at this all day. I have tried 3 different methods of setting a static ip in a network card on Vista. For some reason, every one of them runs without an error, but when I check the settings they have changed everything but the ip and mask. What am I missing here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fartoon</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-13086</link>
		<dc:creator>Fartoon</dc:creator>
		<pubDate>Mon, 03 Sep 2007 09:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-13086</guid>
		<description>Please can you show us how it work with Windows NT</description>
		<content:encoded><![CDATA[<p>Please can you show us how it work with Windows NT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saman Sadeghi</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-7332</link>
		<dc:creator>Saman Sadeghi</dc:creator>
		<pubDate>Mon, 18 Jun 2007 20:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-7332</guid>
		<description>That's odd, I'm not getting that error....</description>
		<content:encoded><![CDATA[<p>That&#8217;s odd, I&#8217;m not getting that error&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saman Sadeghi</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-7330</link>
		<dc:creator>Saman Sadeghi</dc:creator>
		<pubDate>Mon, 18 Jun 2007 20:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-7330</guid>
		<description>&lt;p&gt;It took me a while but I finally figured out the problem:&lt;/p&gt;
&lt;p&gt;For some reason, when you copy/paste or download the code, the quotation marks are changed and the Command Prompt can't understand them!&lt;/p&gt;
&lt;p&gt;Just &lt;b&gt;replace all of the quotes&lt;/b&gt; by retyping them... or just copy/paste the code again, I have fixed the problem on my end!&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>It took me a while but I finally figured out the problem:</p>
<p>For some reason, when you copy/paste or download the code, the quotation marks are changed and the Command Prompt can&#8217;t understand them!</p>
<p>Just <b>replace all of the quotes</b> by retyping them&#8230; or just copy/paste the code again, I have fixed the problem on my end!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Week 25 of 2007</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-7138</link>
		<dc:creator>Week 25 of 2007</dc:creator>
		<pubDate>Fri, 15 Jun 2007 21:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-7138</guid>
		<description>[...] shows us how to Set your IP Address Via Batch File (sorry &#8230; i&#8217;m a computer [...]</description>
		<content:encoded><![CDATA[<p>[...] shows us how to Set your IP Address Via Batch File (sorry &#8230; i&#8217;m a computer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HomeNet</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6978</link>
		<dc:creator>HomeNet</dc:creator>
		<pubDate>Wed, 13 Jun 2007 18:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6978</guid>
		<description>By the way, the current code gave me errors.  It should be:

reg add “hkcu\software\microsoft\internet explorer\main” /v “Start Page” /f /d “%varhome%”

The /f switch should come before the /d otherwise you may see an error like:
"Error:  Too many command-line parameters"</description>
		<content:encoded><![CDATA[<p>By the way, the current code gave me errors.  It should be:</p>
<p>reg add “hkcu\software\microsoft\internet explorer\main” /v “Start Page” /f /d “%varhome%”</p>
<p>The /f switch should come before the /d otherwise you may see an error like:<br />
&#8220;Error:  Too many command-line parameters&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HomeNet</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6977</link>
		<dc:creator>HomeNet</dc:creator>
		<pubDate>Wed, 13 Jun 2007 17:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6977</guid>
		<description>I see the line of code that changes the homepage.  Searching for ways to change the homepage via the command line brought me here.  IE7 has the ability to have multiple homepages.  How can one set that up via the sting of code you used in your script?  I found the registry setting after I set up a couple home pages but there was only one address in there - not multiples separated by commas or anything.

Any help would be cool.</description>
		<content:encoded><![CDATA[<p>I see the line of code that changes the homepage.  Searching for ways to change the homepage via the command line brought me here.  IE7 has the ability to have multiple homepages.  How can one set that up via the sting of code you used in your script?  I found the registry setting after I set up a couple home pages but there was only one address in there - not multiples separated by commas or anything.</p>
<p>Any help would be cool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ bores me</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6594</link>
		<dc:creator>AJ bores me</dc:creator>
		<pubDate>Fri, 08 Jun 2007 23:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6594</guid>
		<description>Yo Saman!!

I like the idea of this batch file.  However, it is not working for me.  I get errors...."Invalid interface oLocal specified"...whats up with that??  I get this with both of your .bat files....setting and resetting my IP.</description>
		<content:encoded><![CDATA[<p>Yo Saman!!</p>
<p>I like the idea of this batch file.  However, it is not working for me.  I get errors&#8230;.&#8221;Invalid interface oLocal specified&#8221;&#8230;whats up with that??  I get this with both of your .bat files&#8230;.setting and resetting my IP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekend Links for 06/08 &#124; PureBlogging</title>
		<link>http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6577</link>
		<dc:creator>Weekend Links for 06/08 &#124; PureBlogging</dc:creator>
		<pubDate>Fri, 08 Jun 2007 14:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://samanathon.com/set-your-ip-address-via-batch-file/#comment-6577</guid>
		<description>[...] Sadeghi demonstrates how to set your IP address via a batch file and how to reset your IP address via another batch [...]</description>
		<content:encoded><![CDATA[<p>[...] Sadeghi demonstrates how to set your IP address via a batch file and how to reset your IP address via another batch [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.346 seconds -->
