Reputation: 1
I am trying to execute this command which allows me to switch between Lan line and wireless.
C:\Windows\system32>netsh interface set interface name="Ethernet" admin=DISABLED
I have tried.
runas /user:administrator C:\Windows\system32>netsh interface set interface name="Ethernet" admin=DISABLED
when I execute it using notepad as double click, nothing happens, but when I go to cmd, execute CMD as ADMIN and copy and paste.
netsh interface set interface name="Ethernet" admin=DISABLED
then Lan gets disabled,
I want to double click the notepad(.BAT) file and want it to execute but something is not allowing it to execute. any ideas?
Upvotes: -1
Views: 988
Reputation: 329
If the file is a .bat
( Are you sure it isn't a .txt
? ) you have to:
right click
on the file and then >
Run as administrator
If you arent sure if the file is a .bat
you should either check from the icon or create a brand new one by
Opening notepad, paste the code, save as, delete all the file name and write:
filename.bat
Upvotes: 0