Configure IKEv2 VPN adapter for windows
Create network adapter with IKEv2 for type and EAP-MS-CHAPv2 and require encryption options
get login credentials
Add login credentials to the VPN connection.
Use the following script to set the correct policy settings if getting a policy error when connecting:
Set-VpnConnectionIPsecConfiguration -ConnectionName "Your VPN Name" -AuthenticationTransformConstants SHA256128 -CipherTransformConstants AES128 -DHGroup Group14 -EncryptionMethod AES128 -IntegrityCheckMethod SHA256 -PFSgroup PFS2048 -Force