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 Group Policy
Windows Group Policy
A feature of Windows that enables policy-based administration using Active Directory.
1,891 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,731 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.
4,627 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RicardusLeo 6 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

    No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 18,351 Reputation points Microsoft Employee
    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.