Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

WSETTINGS AirPlaneMode

Aug
1,936
71
When I run;
Code:
WSETTINGS AirPlaneMode
from TCC, it opens the "Windows Settings" dialog.

I then have to click on "Network & Internet", then "Airplane mode".

This does not seem WAD, as I thought it would take me directly to the Airplane Mode dialog.

Joe
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  28.00.10 x64   Windows 10 [Version 10.0.19043.1052]
 
It seems more WAD given that that's precisely where this takes you (start button).

1626402432175.png
 
You can also roll your own. If you get this file and run it through TPIPE to get rid of the HTML and GREP the lines containing "ms-settings" (and do a bit of manual cleaning up) you can use something like this (which could be squeezed into an alias).

Code:
v:\> type wset.btm
setlocal
set choice=%@select[v:\ms-settings.txt,0,0,40,40,Select one]
if "%choice" == "" quit
start ms-settings:%choice

WSET will present you with a list of places to go. Attached is my ms-settings.txt which had a lot of inappropriate and never used stuff thrown away (more to come). The locations must be lowercase for START to work with them.

I suppose you could also use WSETTINGS instead of START with the list from the help (edited and ordered as you see fit).
 

Attachments

  • ms-settings.txt
    1.9 KB · Views: 133
So, according to WSETTINGS, it says AirplaneMode (which does not work).

However;
Code:
start ms-settings:network-airplanemode
...does work.

This does not work;
Code:
e:\utils>wsettings network-airplanemode
TCC: (Sys) The parameter is incorrect.
 "network-airplanemode"

No doubt Microsoft changed something, which @rconn will have to fix.

Thanks @vefatica for that tip.

Joe
 
Back
Top