netsh -r command to change nic to dhcp

Posted: 03-22-2006, 01:40 PM
Id like to remotly run the following netsh commands:

interface ip set address name="Local Area Connection" source=dhcp
interface ip set dns name="Local Area Connection" source=dhcp
register=PRIMARY
interface ip set wins name="Local Area Connection" source=dhcp

Doing so remotly currently comes back and says "The follwing command was not
found:

Is it a no, no or have I got some security issues?

If it cant be done, can anyone suggest another way it can be done remotly
and on batch?

Tim





Reply With Quote

Responses to "netsh -r command to change nic to dhcp"

chuck
Guest
Posts: n/a
 
RE: netsh -r command to change nic to dhcp
Posted: 03-23-2006, 03:55 AM
Try PSexec

psexec \\hostname -u username -p password netsh interface ip set address
"Local Area Connection" dhcp

this will probaly hang pcexec but will get the job done. to make it more
elegant call a batch file on the remote system

"Tim Guy" wrote:
> Id like to remotly run the following netsh commands:
>
> interface ip set address name="Local Area Connection" source=dhcp
> interface ip set dns name="Local Area Connection" source=dhcp
> register=PRIMARY
> interface ip set wins name="Local Area Connection" source=dhcp
>
> Doing so remotly currently comes back and says "The follwing command was not
> found:
>
> Is it a no, no or have I got some security issues?
>
> If it cant be done, can anyone suggest another way it can be done remotly
> and on batch?
>
> Tim
>
>
>
>
>
>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in the command "netsh" Terry Windows Vista Networking & Sharing 1 03-02-2007 04:44 PM
XP Change Port Command Peter King Windows XP Configuration & Management 0 01-03-2006 07:10 AM
Why won't "netsh dhcp" work from XP Pro? Christopher Hoover Windows XP Network & Web 0 08-27-2003 09:32 PM
xp, netsh dhcp Darin Windows XP Network & Web 0 08-05-2003 07:48 PM
netsh, static IP, DHCP Richard Mahn Windows XP Embedded 5 07-28-2003 06:26 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90