Hi, I am trying to get a netsh alias working.
Trying to achieve:
Alias:
dns 8.8.8.8
to launch
netsh interface ip set dns "Local Area Connection" static 8.8.8.8
and if Alias:
dns dynamic
then
netsh interface ip set dns "Local Area Connection" dhcp
As a simple case I have tried putting dns as alias name, leaving all optional and
Change DNS - $$1 | netsh interface ip set dns "Local Area Connection" static $$1
but this doesn't seem to be working. As soon as I type the first number, the alias disappears from result and pressing enter does nothing, like when I try dns 8.8.8.8 with the above alias.
Any ideas?
Also can I prepend runcap with the above alias to get it to display the output?
Thanks!