Launch UWP 'system' app (cloud experience host)

DeeG 1 Reputation point
2020-09-17T18:19:09.523+00:00

I have enabled the GPO to bring up the Windows Hello for Business enrollment at user logon and it works fine.

However we have a lot of remote workers that log on 'offline' then connect to the domain over VPN.

I'm looking for a way to invoke the Whfb enrollment process via a script which I will run post VPN connection. I'm struggling to find a way to launch the UWP app (CloudExperienceHost) that controls the enrollment.

I've found the related protocol (ms-cxh:) but it just launches a blank screen so assum it needs some arguments.

I've seen a few PS scripts that talk about launching from the shell: protocol but I can't get these to work as they are more focused on standard user apps

I should be possible 'in-session' as we get an occasional random toast notification which will kick off the process. Triggering that would be fine as well

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,740 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,901 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RicardusLeo 11 Reputation points
    2023-01-30T11:16:59.8233333+00:00

    Hi,

    Please open a CMD prompt and give the following commands a try:

    Full Screen:

    ms-cxh-full://nthaad
    

    Windowed:

    ms-cxh://nthaad
    

    Hope it helps!

    Best regards,

    Richard

    1 person found this answer helpful.
    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,571 Reputation points Microsoft Vendor
    2020-09-21T05:58:36.987+00:00

    Hi,

    See if this works

    start shell:AppsFolder\YourAppFullName!App  
    

    You may refer to this link
    https://social.technet.microsoft.com/Forums/en-US/20e5814b-5abc-4111-9eab-67f88512da3c/how-to-start-a-universal-windows-app-uwp-from-powershell-in-windows-10?forum=win10itprogeneral

    Best Regards,
    Ian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.