I am trying to open the Win10 bluetooth configuration page via PowerShell shortcut.
In a nutshell:
start-process -FilePath "shell:appsFolder\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" -ArgumentList "Page=SettingsPageDevices"
does open the device settings, but the argument to navigate to the Bluetooth Devices is not taken, as it does from Window's native function (clicking the tile directly opens the Bluetooth devices page).
Background: I exported the tile settings using:
Export-StartLayout -UseDesktopApplicationID -Path m:\layout.xml
That gave me:
<start:SecondaryTile AppUserModelID="windows.immersivecontrolpanelcw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" TileID="SystemSettingsL2_SettingsPageDevices" DisplayName="" [...] Arguments="page=SettingsPageDevices" [...] />
When I call the above to start it in the same way, I am not getting to the arguments being applied. I tried many different notations for the args instead of the a=b format eg. "--a b", "-a b", "/a b", "/a:b", "a b", "a:b" "a,b", but nothing works, it always ends the call without applying the arguments.
Thanks for any help.
Problem passing Arguments to Win10 Secondary Tile App
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
-
- Posts: 2
- Last visit: Thu Mar 26, 2020 5:42 am
-
- Posts: 2
- Last visit: Thu Mar 26, 2020 5:42 am
Re: Problem passing Arguments to Win10 Secondary Tile App
Thanks, that works and is way easier than the Tile call!