0
I try to use this code to disable wifi interface and enable lan interface when user davide login. The script starts at startup it prompts me for password (twice) but then it fails.. I added pause command to see what happens but I do not know what I am doing wrong..
runas /user:davide "netsh interface set interface 'Connessione rete wireless' disabled"
pause
runas /user:davide "netsh interface set interface 'Connessione alla rete locale (LAN)' enabled"
My operating system is windows 7 professional 64Bit..
May you help me?
Try using
\"
instead of'
– DavidPostill – 2017-09-16T13:14:10.753I edited the script in this way, I don't know if it is right: "netsh interface set interface "Connessione rete wireless" but it doesn't work.. – P.Davide – 2017-09-17T08:42:54.887