Windows Group Policy Name :- Group Policy - Wireless Display Prefer PIN pairing
At least Windows Server 2016, Windows 10
This policy applies to Wireless Display connections. This policy changes the preference order of the pairing methods.
When enabled, it makes the connections to prefer a PIN for pairing to Wireless Display devices over the Push Button pairing method.
If this policy setting is disabled or is not configured, by default Push Button pairing is preferred (if allowed by other policies).
After changing group policy options, you need to update group policy. If you do not update group policy then settings will not effect. To update it just simply type below command and also sample image is shown.
In about command we used "/force" option, this will help up to update policy options forcefully.