Search : in
By :

How to change IP address from command prompt

Last answer on Nov 18, 2009 7:06:23 am GMT nareen123, on Jul 8, 2008 10:44:01 am BST 
 Report this message to moderators

Hello,


Is there any way to change IP address of computer from Command prompt?

I use WinXP as OS and I would like to know if I can change IP from Command prompt


Please help me out.

Configuration: Windows XP
Internet Explorer 6.0

Best answers for « How to change IP address from command prompt » in :
Command to detect your IP address! Show Command to detect your IP address! Command for Windows 2000 / XP / Vista Command for Windows 95/98 Command for Linux IP address (Internet Protocol) is a numerical identification to detect your computer on a network. It is used to...
Changing the color of the command prompt(shell) ShowChanging the color of the command prompt(shell) Purpose Methods Purpose Changing the color of characters in the prompt (or shell), make them more readable. If you are using colors group, you can sense by color, this will eliminate the...
Quickly change IP configuration with netsh ShowQuickly change IP configuration with netsh Issue Solution Issue Sometimes it happens that your status is not systematically set as DHCP client, depending on the environment in which it operates. It becomes cumbersome to constantly...
Renew your IP address ShowRenew your IP address Issue Solution Issue Sometimes you are unable to access the internet even the LAN cable is connected and the router is running normally! You can also get this "Limited or no connectivity" which will appear on...
IP address spoofing ShowIP address spoofing "IP address spoofing" is a technique that involves replacing the IP address of an IP packet's sender with another machine's IP address. This technique lets a pirate send packets anonymously. It is not a question of changing the...
IP Address ShowWhat is an IP address? Computers communicate over the Internet using the IP protocol (Internet Protocol), which uses numerical addresses, called IP addresses, made up of four whole numbers (4 bytes) between 0 and 255 and written in the format...
NAT- Network address translation, port forwarding and port trigg ShowThe principle of NAT Network address translation or NAT was developed in order to respond to the shortage of IP addresses with IPv4 protocol (in time the IPv6 protocol will respond to this problem). In fact, in IPv4 addressing the number of...

1

yashmaur, on Jul 8, 2008 10:44:49 am BST
  • +1

Hello,

There's no way to effectively change it from a command prompt. You could use the ipconfig release and renew commands, but chances are you're just going to get your old IP address back, especially if you are behind a router or static IP.


Hope this will help you.

Reply to yashmaur

72

baba, on Aug 10, 2009 12:38:52 pm BST
  • +6

How to change ip address from commandprompt

Reply to baba

2

2xod.com, on Jul 20, 2008 10:51:02 pm BST
  • +67

Of course you can change the IP from the command prompt.

The command is:
to change IP and default gateway:
netsh int ip set address "local area connection" static 192.168.0.101 255.255.255.0 192.168.0.254 1

to change DNS:
netsh int ip set dns "local area connection" static 192.168.0.254 primary

This is assuming 3 things.
1) The network adapter you're trying to change the IP for is "local area connection". It could also be "local area connection 2" or "wireless network connection". Look in your control panel for the correct name
2) The IP you want to set is 192.168.0.101, change this to whatever IP to want to use.
3) The default gateway and dns are the same IP. If you are using some kind of router they usually are. Change this to match your network config found with the command ipconfig /all

You will need to run both commands to change the IP.

Reply to 2xod.com

3

., on Jul 21, 2008 1:58:00 pm BST
  • +6

How to revert back? when i use your method my internet connection was lost.

Reply to .

122

Romulus, on Oct 28, 2009 8:26:12 pm GMT
  • +1

Did u regain the connection??? if not, go to network connections right click on the local area connection-properties-internet protocol properties.
now select-1. obtain ip address automatically
2. obtain dns automatically.
hope it helped... i also faced the same problem..

Reply to Romulus

34

ryan, on Jan 13, 2009 4:45:31 pm GMT
  • +3

Can you please step by step explain how to change my wireless (connected to a router) ip address.

if you can thankyou very much

Reply to ryan

46

Koranteng alex, on Mar 1, 2009 11:48:48 am GMT
  • +6

I am using windows xp
ip 192.68.0.1
subnet 255.255.255.0
gateway 192.168.0.254
preferred dns 25.166.0.13
altenate dns 16.50.55.2

how can i configure this on windows98?

thank you

Reply to Koranteng alex

40

music, on Jan 31, 2009 1:15:50 am GMT
  • +6

Hiii..
very very thanks for you, to give me the information about netsh and its application in changing the ip address through cmd promt

Reply to music

49

vivek tyagi, on Mar 24, 2009 5:20:04 am GMT
  • +3

How to change IP address from command prompt and centos linux based server

Reply to vivek tyagi

67

san, on Jun 28, 2009 5:30:51 am BST
  • +1

In windows--------------type the command

ipconfig <ip address? <subnet mask>

in linux

netconfig

Reply to san

54

mandi7, on May 11, 2009 3:11:49 am BST
  • +1

So i tried to run the netsh .... came back as the requested operation requires elevation. help please

Reply to mandi7

58

HerbCSO, on May 17, 2009 12:03:43 pm BST
  • +1

You are running Vista or Windows 7 - you need to run the command prompt as an Administrator. Go to Start menu, type cmd, right-click on cmd.exe at the top of the menu and select "Run as administrator". Then it will work in that command prompt.

Reply to HerbCSO

59

HerbCSO, on May 17, 2009 12:08:23 pm BST
  • +7

One thing I found in Windows 7 (and I assume it's the same in Vista and XP) - if you have the IPv6 stack installed, you need an additional parameter to specify whether you're changing IPv4 or IPv6 settings - simply insert ipv4 in between int and set and it'll work there, too. See the batch file I created for myself:

@echo off
if "%1"=="static" goto static
if "%1"=="dhcp" goto dhcp
echo Usage: %0 (static^|dhcp)
goto end2
:static
echo Setting static IP of 192.168.xxx.xxx
netsh int ipv4 set address "Local Area Connection" static 192.168.xxx.xxx 255.255.255.0 192.168.xxx.xxx 1
echo Setting primary DNS server to 192.168.xxx.xxx
netsh int ipv4 set dnsservers "Local Area Connection" static 192.168.xxx.xxx primary
goto end
:dhcp
echo Setting Dynamic (DHCP) IP
netsh int ipv4 set address "Local Area Connection" dhcp
echo Setting Dynamic (DHCP) DNS
netsh int ipv4 set dnsservers "Local Area Connection" dhcp
goto end
:end
echo Waiting for IP config to update...
@choice /c 12 /T 3 /d 1 >  NUL
ipconfig /all
pause
:end2

Reply to HerbCSO

63

Afzal, on Jun 19, 2009 11:39:06 am BST
  • +1

@herbCSO ... That was a great bit of code... But one issue came up while I tried it in Vista..

netsh int ipv4 set dnsservers "Local Area Connection" static 192.168.xxx.xxx primary
was giving an error The following command was not found: int ipv4 set dnsservers "Local Area Connection" static 192.168.xxx.xxx primary

After a bit of debugging i found that a 's' is extra in that command for me... it worked when it was changed to
netsh int ipv4 set dnsserver "Local Area Connection" static 192.168.xxx.xxx primary


Thanks again

Reply to Afzal

64

HerbCSO, on Jun 19, 2009 6:33:20 pm BST

@Afzal Thx for trying it on Vista and posting the correction! ;]

Reply to HerbCSO

119

ENER, on Oct 27, 2009 3:49:05 pm GMT

Could you please help me, actually i took your notes posted in en.kioskea.net abotu change ip with one click, I've trying all ways possible to do so and can't in windows seven. That's how I'm using in XP which works perfectly, but in W7 even when chang int Ipv4 and anothers don't know wahy reason it doesn't work. Please help me to solve it. I do change to many other ip cos.. I have not a DHPC server configured and have to change the ip in any city o place I come across.

In XP works fine, but in windows 7 neither changes with Ipv4 nor another commands works

netsh interface ip set address name="LAN" source=static addr=10.175.5.181 mask=255.255.0.0 gateway=10.175.1.1 gwmetric1
netsh interface ip set dns name="LAN" source=static addr=10.10.1.46
netsh interface ip add dns name="LAN" addr=10.10.1.52

I thank you a lot for any support.

All the best

Rene

Reply to ENER

120

enermelo, on Oct 27, 2009 4:10:38 pm GMT

Please could you help me on this matter, I've working around it changing Ipv4 and another commands but still rushing on that. also your own config I've ran but nothing change with windows 7.

This is my batch file which works fine in XP, so please I beg you support to get it works in windows 7

netsh interface ip set address name="LAN" source=static addr=10.175.5.181 mask=255.255.0.0 gateway=10.175.1.1 gwmetric1
netsh interface ip set dns name="LAN" source=static addr=10.10.1.46
netsh interface ip add dns name="LAN" addr=10.10.1.52

Thank you very much any support

All the best

Reply to enermelo

135

ultifish, on Nov 15, 2009 8:27:20 pm GMT

I can set the IP from the command line, but when it's scripted in a .bat file I will get a pop-up about the interface is not enabled and the script waits for my manual click. I can't seem to get this command to work:
netsh interface set interaface name="Plugged Local Area Connection" admin=ENABLED

I've tried many variations and always get something like:
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.

Any suggestions?
Thanks in advance.

Reply to ultifish

70

PUTTI RAMESH, on Aug 1, 2009 5:13:23 am BST

Dear Friend,
Information what you are provided is very use full for me thank you for that and one more how to remove ip address using dos command please send a mail.

Thank you
PUTTI RAMESH

Reply to PUTTI RAMESH

79

Tboy, on Sep 4, 2009 11:30:32 am BST
  • +1

Please I have forgotten the password to my wireless bridge and i need to log in. How do I go about it?

Reply to Tboy

128

Annachi, on Oct 31, 2009 6:12:14 am GMT

Hi
Im using dhcp and i want to configure static ip through command prompt, and i tried ur above command, it didn't work.

Pls Help

Annachi

Reply to Annachi

133

Prabhat Raghav, on Nov 11, 2009 3:17:29 am GMT
  • +1

Hi Dear,

Kindly let me know
How to change IP address by command prompt in Windows XP and Windows Vista.

Reply to Prabhat Raghav

4

2xod.com, on Jul 21, 2008 10:26:29 pm BST
  • +19

To change to static IP:
------------------------------------------------------------­----
This changes the IP address and Default Gateway:
netsh int ip set address "local area connection" static {192.168.0.101} 255.255.255.0 {192.168.0.254} 1

This changes DNS:
netsh int ip set dns "local area connection" static {192.168.0.254} primary
----------------------------------------------------------------
You will want to change the values between the curly braces, but do not use the curly braces when you run the command.
----------------------------------------------------------------
To change the interface back to DHCP (get IP automatically) use this command:
netsh int ip set address "local area connection" dhcp

DNS:
netsh int ip set dns "local area connection" dhcp
----------------------------------------------------------------


============================
I would recommend you view the help for this command, it will shed much more insight on what you're actually doing.
The netsh command allows you to change many things such the firewall configuration to the ip addresses.
You can get help for the netsh command by adding each word of the command and adding /?. For example:

=================================
C:\Documents and Settings\2xod>netsh /?

Usage: netsh [-a AliasFile] [-c Context] [-r RemoteMachine]
[Command | -f ScriptFile]

The following commands are available:

Commands in this context:
? - Displays a list of commands.
add - Adds a configuration entry to a list of entries.
bridge - Changes to the `netsh bridge' context.
delete - Deletes a configuration entry from a list of entries.
diag - Changes to the `netsh diag' context.
dump - Displays a configuration script.
exec - Runs a script file.
firewall - Changes to the `netsh firewall' context.
help - Displays a list of commands.
interface - Changes to the `netsh interface' context.
ras - Changes to the `netsh ras' context.
routing - Changes to the `netsh routing' context.
set - Updates configuration settings.
show - Displays information.
winsock - Changes to the `netsh winsock' context.

The following sub-contexts are available:
bridge diag firewall interface ras routing winsock

To view help for a command, type the command, followed by a space, and then
type ?.

=================================
C:\Documents and Settings\2xod>netsh int /?

The following commands are available:

Commands in this context:
? - Displays a list of commands.
add - Adds a configuration entry to a table.
delete - Deletes a configuration entry from a table.
dump - Displays a configuration script.
help - Displays a list of commands.
ip - Changes to the `netsh interface ip' context.
ipv6 - Changes to the `netsh interface ipv6' context.
portproxy - Changes to the `netsh interface portproxy' context.
reset - Resets information.
set - Sets configuration information.
show - Displays information.

The following sub-contexts are available:
ip ipv6 portproxy

To view help for a command, type the command, followed by a space, and then
type ?.

=================================
C:\Documents and Settings\2xod>netsh int ip /?

The following commands are available:

Commands in this context:
? - Displays a list of commands.
add - Adds a configuration entry to a table.
delete - Deletes a configuration entry from a table.
dump - Displays a configuration script.
help - Displays a list of commands.
reset - Resets TCP/IP and related components to a clean state.
set - Sets configuration information.
show - Displays information.

To view help for a command, type the command, followed by a space, and then type ?.

=================================
C:\Documents and Settings\2xod>netsh int ip set /?

The following commands are available:

Commands in this context:
set address - Sets the IP address or default gateway to the specified interface.
set dns - Sets DNS server mode and addresses.
set wins - Sets WINS server mode and addresses.

=================================
C:\Documents and Settings\2xod>netsh int ip set address /?

Usage: set address [name=]<string>
[[source=]dhcp |
[source=] static [addr=]IP address [mask=]IP subnet mask]
[[gateway=]<IP address>|none [gwmetric=]integer]

Parameters:

Tag Value
name - The name of the interface.
source - One of the following values:
dhcp: Sets DHCP as the source for configuring IP
addresses for the specific interface.
static: Sets the source for configuring IP addresses
to local static configuration.

gateway - One of the following values:
<IP address>: A specific default gateway for the
static IP address you are setting.
none: No default gateways are set.
gwmetric - The metric for the default gateway. This field should
not be set if gateway is set to 'none'.
The following options are used only if source is 'static':

addr - An IP address for the specified interface.
mask - The subnet mask for the specified IP address.

Remarks: Used to change the IP address configuration mode from either DHCP to
static mode or static mode to DHCP. Adds IP addresses on an
interface with static IP address or adds default gateways.

Examples:

set address name="Local Area Connection" source=dhcp
set address local static 10.0.0.9 255.0.0.0 10.0.0.1 1


C:\Documents and Settings\2xod>
=================================

If you ever mess up the configuration you can always modify the settings through the graphical interface of the control panel. From Start > Control Panel > Switch to Classic View, and open Network Connections


Before running these commands, look at your existing (working) IP configuration with the ipconfig command:
This will show you the Default Gateway and DNS entries to put in the commands above where the {braces} are.
================================
C:\Documents and Settings\2xod>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : computar
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 XT Server Adapter
Physical Address. . . . . . . . . : 00-02-B3-B5-D6-J3
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.2
DNS Servers . . . . . . . . . . . : 192.168.0.2

C:\Documents and Settings\2xod>
================================

Reply to 2xod.com

5

bharat.cse1, on Aug 12, 2008 5:52:58 am BST
  • +2

How to set both the preferred and alternate dns using dos??

Reply to bharat.cse1

7

thepenk, on Sep 23, 2008 7:28:25 am BST
  • +3

You can add more than one DNS server with the commands:

netsh int ip set dns "local area connection" static 192.168.0.254 primary
netsh int ip add dns "local area connection" 192.168.1.254

Reply to thepenk

47

Paddy, on Mar 7, 2009 10:11:29 am GMT

Thank you for your help.

Reply to Paddy

73

jitendar, on Aug 18, 2009 7:01:51 am BST

How to add or change alternate dns server




Thanks and regards

Reply to jitendar

11

Armoredfish, on Nov 15, 2008 10:38:12 am GMT
  • +1

I was reading your replies. You appear to be a master. I have the following problems which have croppoed up:

--I use an old Windows 2003 Enterprise Server on my C Drive of the my Dell Server (use it as a home PC). Does not have a Service Pack(s). It had a Enterpise version of MsAfee as a anitvirus pkg. However I made the mistake of installing a false codec ( a virus/trojan) for my multi media player. As a result for a few days the trojan though detectable and deleted by McAfee which detects and deletes it on some kind of access. However, the trojan/virus has been consistently modifying my DNS addresses (2 of them) and whenever I try to modify them by typing in the original ones it changes it with a set of its own DNS address. McAfee is not able to help even after running it in the safe mode.

-To acess the Internet now - I have installed Vista in another partition and get it through DHCP - it obtains IP and DNS of the router and beyond automatically. That works in Vista. But does not work in the C: drive which has fixed IP and DNS addresses.

-What do you advise?

Reply to Armoredfish

12

nitul, on Nov 17, 2008 4:26:50 am GMT
  • +2

Go to services and find DNS client modify it as manual not automatic.Give the DNS manualy and will work.

Reply to nitul

26

justbow, on Dec 10, 2008 6:47:56 am GMT
  • +4

I use windows 2000 then set :

-----------------
@echo off
netsh interface ip set address name="Local Area Connection" static 172.28.13.7 255.255.255.224 172.28.13.30
ipconfig
pause
---------------------


the ip configuration become :
IP Address : 172.28.13.7
Netmask : 255.255.255.224
Gateway : 172.28.13.30

then running the different script :

@echo off
netsh interface ip set address name="Local Area Connection" static 172.28.13.92 255.255.255.240
ipconfig
pause

the ip configuration become :
IP Address : 172.28.13.92
Netmask : 255.255.255.240
Gateway : 172.28.13.30

the Gateway still unchange..
I want no gateway for this :D
Any solution?

Reply to justbow

132

kmaniyar, on Nov 5, 2009 10:18:56 pm GMT

I have installed couple of NIC cards on my Windows 7 PC. I would like to set the IP address of these interfaces to 0.0.0.0, but the cmd: netsh does not allow to set the IP 0.0.0.0 ?

C:\>netsh int ip set address "Local Area Connection 2" static 0.0.0.0 mask=255.255.255.0
The parameter is incorrect.

Is there a way to set the IP to 0.0.0.0 from netsh command?

Reply to kmaniyar

6

raj, on Sep 20, 2008 1:14:44 pm BST
  • +3

Please solve my problem

Reply to raj

17

nawaz, on Nov 30, 2008 11:32:57 am GMT
  • +2

Why u want to change ip from CMD prompt

Reply to nawaz

43

Yadav, on Feb 12, 2009 4:52:04 pm GMT

Please .
Give this answer as soon as poible.

Reply to Yadav

8

none, on Nov 3, 2008 5:53:59 pm GMT
  • +2

Create a text doc, and copy then paste the following to the text document.

@ECHO OFF
ipconfig /release
ipconfig /flushdns
ipconfig /setclassid
ipconfig /registerdns
ipconfig /renew
EXIT



Then go to file - save as, let the window open, and under Save As Type select All Files and name as fix.bat, click save and exit.
Go to where you saved file and double click on it, let it do it's thing and it will be fixed!

Reply to none

9

Nitulk, on Nov 10, 2008 9:15:37 am GMT
  • +2

In command line write ipconfig /renew EL*

Reply to Nitulk

10

Go4buy, on Nov 13, 2008 5:40:27 pm GMT
  • +1

I can help you with proxy IP Change. add me Yahoo Mass go4buy

Reply to Go4buy

13

seethayyanaidu, on Nov 24, 2008 8:46:27 am GMT

Iam unable to assign ip address through command prompt in win98?
please help me?

Reply to seethayyanaidu

20

GiantLeap, on Dec 1, 2008 9:19:55 pm GMT

You can't assign ip addresses from CMD in windows 98/me/nt systems

Reply to GiantLeap

14

cool, on Nov 27, 2008 9:55:14 am GMT

Pls do that for me. Thanks

Reply to cool

21

nitu, on Dec 2, 2008 2:10:47 am GMT

In Run menu enter cmd press enter
type ipconfig for display the IP address of the PC.
For renew ipconfig/renew
For release ipconfig/release

Reply to nitu

22

GiantLeap, on Dec 2, 2008 6:50:17 am GMT

Omg, just click "Repair" in XP or "Diagnose" in Vista/Windows7 at your network connection

Reply to GiantLeap

23

dev jain, on Dec 2, 2008 2:16:10 pm GMT
  • +1

Lot of free tools on net which can tell u what u want. ip scaner is one of the tool. you just go on google and search u can find it if no than go to http://www.download.com/...

this link and download that software and than install.

Reply to dev jain

24

GiantLeap, on Dec 2, 2008 2:19:20 pm GMT
  • +1

Have you seen any DHCP preferred IP changer? thx)

Reply to GiantLeap

25

GURT, on Dec 9, 2008 1:21:42 am GMT
  • +1

Go to command prompt and type in ipconfig/all

Reply to GURT

27

shedrack, on Dec 16, 2008 9:37:30 pm GMT

Hello
I would like to change my ip location to another location and quite believe u can help me in it
thanks

Reply to shedrack

28

567890, on Dec 23, 2008 6:34:47 am GMT

How to change other IP from mycomputer....??

Reply to 567890

29

chetan, on Dec 26, 2008 8:40:45 am GMT

If ur command prompt there type command as ipconfig\all, then type the ipconfig\release then ipconfig\renew that's all

Reply to chetan

30

Leo, on Jan 7, 2009 6:06:48 am GMT

Great help on the above posting.

Is it possible to use IF/Els conditional script between HDCP and static changes?

Suppose: When I run my script it will look for value DHCP=YES then it will run static IP change scripts and when it will find the Value DHCP=NO it will run the DHCP set script.

as an example:
=============
If DHCP = yes
then run Batch1

else skip

Batch1
netsh int IP set address "local area connection" static 192.168.1.12 255.255.255.0 192.168.1.1 1
netsh int ip set dns "local area connection" static 192.168.0.254 primary
netsh int ip set dns "local area connection" static 192.168.0.253 secondary

If DHCP = no
then run Batch2

Batch2
netsh int ip set address "local area connection" dhcp
netsh int ip set dns "local area connection" dhcp
===========================

something like that.

Is it possible. Would appreciate your help on this.

Reply to Leo

31

oyabin, on Jan 10, 2009 3:12:09 pm GMT

Um may i ask...
how about connecting to wireless network, does anyone know how to do it in cmd?

Reply to oyabin

39

Claul, on Jan 30, 2009 8:17:55 pm GMT

Secondary dns cannot be set as you describe. If you want you have to use add like this:
netsh int ip add dns "local area connection" 0.0.0.0 index=2
Of course, you have to use other figures for dns not 0.0.0.0.

Reply to Claul

68

Susanta, on Jul 13, 2009 9:34:05 am BST

Secondary DNS not accepting its showing "secondary is not an acceptable value for register."

Reply to Susanta

32

BATOOTA, on Jan 12, 2009 10:37:20 am GMT

Hello
you can use the command ipconfig renew

Reply to BATOOTA

77

EHJ, on Aug 28, 2009 1:02:36 pm BST
  • +5

IP.VBS

' Assign a Static IP Address


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")

strIPAddress = Array("192.168.90.49")
strSubnetMask = Array("255.255.255.0")
strGateway = Array("192.168.90.2")
strGatewayMetric = Array(1)
strDNSServers = Array("192.168.90.6")

For Each objNetAdapter in colNetAdapters
errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask)
errGateways = objNetAdapter.SetGateways(strGateway, strGatewaymetric)
errDNS = objNetAdapter.SetDNSServerSearchOrder(strDNSServers)
Next

WScript.Echo "Iptalan er nú 192.168.90.49."

Back to DHCP

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")

For Each objNetAdapter In colNetAdapters
errEnable = objNetAdapter.EnableDHCP()
Next
WScript.Echo "DHCP hefur nú verið virkjað."

Reply to EHJ

105

danny, on Oct 9, 2009 10:07:08 am BST
  • +2

I am trying to configure my ip address using command prompt but i have an error message "invalid interface local area connecti
on specified" what can i do next

Reply to danny