How to get the info from a URI (ms-settings: xxxxxxx)

Steven Young 261 Reputation points
2019-12-19T10:15:55.33+00:00

In Windows 10, you can see the Setting items when you open System Settings.

  1. I want to get the friendly name from a specified URI.
    For example:
    Get "Battery Saver" from the URI "ms-settings:batterysaver-settings"
    Get "Diagnostics & feedback" from "ms-settings:privacy-feedback"
    Get "Sync your settings" from "ms-settings:sync" Please view the names and URIs from link below
    https://www.tenforums.com/tutorials/78214-settings-pages-list-uri-shortcuts-windows-10-a.html
  2. How to find out which group the sub page belongs? for example
    the "SettingsPageAccountsSync (ms-settings:sync)" belongs the "Account" group,
    the "SettingsPageBackground(ms-settings:personalization-background)" belongs the "Personalization" group.
  3. How to get the icon of page like the Windows Setting?

Are there the APIs?

Thank you.

Universal Windows Platform (UWP)
{count} votes

3 answers

Sort by: Most helpful
  1. Fay Wang - MSFT 5,191 Reputation points
    2019-12-20T02:31:57.19+00:00

    Hello,​

    ​Welcome to our Microsoft Q&A platform!

    I want to get the friendly name from a specified URI. How to find out which group the sub page belongs?

    The ms-settings link is mainly used to wake up the windows settings app, we can only launch the app but there is no api can get the friendly name and find out which group the sub page belongs.

    How to get the icon of page like the Windows Setting?

    Also we can't get the icon directly, but you can use Segoe MDL2 icons to choose the icon you want to display.

    0 comments No comments

  2. Pavel Otych 81 Reputation points
    2019-12-26T07:17:57.35+00:00

    Hi, documentation of the URIs is sorted by the specific categories so you can easily see which URI belongs to which category - I suppose that's what you're after: https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app

    0 comments No comments

  3. Steven Young 261 Reputation points
    2019-12-26T11:56:09.157+00:00

    Sorry, I need to get the category for each URI programmatically.