The following forum(s) have migrated to Microsoft Q&A (Preview): Developing Universal Windows apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
[UWP][C#]Programmatically access the Windows Hello Setup page RRS feed

  • Question

  • I've been using c# and XAML in Visual Studio 2017 to learn about UWP apps with the walkthrough at https://docs.microsoft.com/en-us/windows/uwp/security/microsoft-passport-login

    My device is enabled for Windows Hello Face Recognition.

    When a user has not set up face recognition, on trying to login, Windows Hello asks for the PIN.

    Having entered the PIN successfully, group policy start my app.  If the user has already set up face recognition, then the app runs.

    If the user has not set up face recognition, I want my app to immediately present the Windows Hello setup page so that the user can set up the face recognition.

    How do I do this?

    Your help would be much appreciated.

    Thanking you in anticipation.

    Roger


    rogerwithnell


    • Edited by Breeze Liu Thursday, September 14, 2017 5:52 AM [UWP][C#]
    Wednesday, September 13, 2017 6:18 AM

Answers

  • Hi rogerwithnell,

    Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!

    You can launch the Windows Hello Setup page by the following code,

     bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:signinoptions-launchfaceenrollment"));

    Or

     bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:signinoptions-launchfingerprintenrollment"));

    More details, please see the Launch the Windows Settings app.

    Best regards,

    Breeze


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Edited by Breeze Liu Thursday, September 14, 2017 5:53 AM
    • Marked as answer by rogerwithnell Thursday, September 14, 2017 9:20 AM
    Thursday, September 14, 2017 5:52 AM

All replies

  • Hi rogerwithnell,

    Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!

    You can launch the Windows Hello Setup page by the following code,

     bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:signinoptions-launchfaceenrollment"));

    Or

     bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:signinoptions-launchfingerprintenrollment"));

    More details, please see the Launch the Windows Settings app.

    Best regards,

    Breeze


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Edited by Breeze Liu Thursday, September 14, 2017 5:53 AM
    • Marked as answer by rogerwithnell Thursday, September 14, 2017 9:20 AM
    Thursday, September 14, 2017 5:52 AM
  • How can this be implemented in C#. Also is there an Event handler which could be triggered when windows configures windows Hello?
    Thursday, August 29, 2019 3:52 PM