M
MatthewBrown
Hello,
I am interested in running NetSH on all of the computers on my domain.
The easist way I can fathom doing this is with PSExec, the only problem
being that you need to nest the name of the adapter in double quotes
within the NetSH arguments.
Here's what I figured would work:
psexec \\helpdesk-tester -u administrator -p pass netsh "interface ip
set address ""Local Area Connection"" dhcp"
Produced:
The following command was not found: "interface ip set address Local
Area Connection dhcp".
I then tried:
psexec \\helpdesk-tester -u administrator -p pass netsh "interface ip
set address \"Local Area Connection\" dhcp"
Which produced:
The following command was not found: "interface ip set address Local"
Area "Connection dhcp".
And last but not least:
psexec \\helpdesk-tester -u administrator -p pass netsh "interface ip
set address \"Local Area Connection"\ dhcp"
The following command was not found: "interface up set address Local"
Area Connection" dhcp.
There seems to be little to no logic here. So, there must be a proper
way that PSExec works for double quotes.
Please help!
Thanks,
Matt
I am interested in running NetSH on all of the computers on my domain.
The easist way I can fathom doing this is with PSExec, the only problem
being that you need to nest the name of the adapter in double quotes
within the NetSH arguments.
Here's what I figured would work:
psexec \\helpdesk-tester -u administrator -p pass netsh "interface ip
set address ""Local Area Connection"" dhcp"
Produced:
The following command was not found: "interface ip set address Local
Area Connection dhcp".
I then tried:
psexec \\helpdesk-tester -u administrator -p pass netsh "interface ip
set address \"Local Area Connection\" dhcp"
Which produced:
The following command was not found: "interface ip set address Local"
Area "Connection dhcp".
And last but not least:
psexec \\helpdesk-tester -u administrator -p pass netsh "interface ip
set address \"Local Area Connection"\ dhcp"
The following command was not found: "interface up set address Local"
Area Connection" dhcp.
There seems to be little to no logic here. So, there must be a proper
way that PSExec works for double quotes.
Please help!
Thanks,
Matt