question

JyothiR-4611 avatar image
0 Votes"
JyothiR-4611 asked HuiLiu-MSFT edited

Windows security popup not shows in secure desktop

I have created one webview2 based application to support multifactor-authentication(MFA). I am trying to implement this in secure desktop(new desktop).

When I tried to trigger MFA sign in, after launching the application in secure desktop, windows security popup did not appear there. Instead the popup appeared in the previous desktop.

I want to make this popup appear in secure desktop.

Is there any solution to bring the windows security dialog in secure desktop. Can you suggest a solution for this ?

windows-10-generalc++windows-10-securityms-edge
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JyothiR-4611

Could you please check if you have configured this policy? This policy setting determines whether the elevation request prompts on the interactive user desktop or on the secure desktop.
I think the issue might be related to this policy. Please enable this policy and test again.

0 Votes 0 ·

I am trying to implement this in secure desktop(new desktop).

Are you referring to a new desktop that you create programmatically or to the system's secure desktop (Winlogon)?



0 Votes 0 ·

New desktop is created programmatically.

0 Votes 0 ·

The authentication components you are using don't know about your new programmatically created desktop. That is why they appear on the default desktop Specific actions must be taken in order for a process (including its threads) to display windows on a non-default desktop.

Refer to https://docs.microsoft.com/en-us/windows/win32/winstation/thread-connection-to-a-desktop which describes the details.

Perhaps you could use https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-switchdesktop to handle the desktop changes.


0 Votes 0 ·
Show more comments

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hi there,

In the secure desktop try resetting the network and check if you can re-enable the Security pop-up.

-Press Windows key + I to open the Settings app.
-Open Network & Internet.
-Select Status from the left pane
-Scroll to the bottom and click on Network Reset.
-Restart the PC and check if the pop-up is enabled.



--If the reply is helpful, please Upvote and Accept it as an answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.