Install-Module -Name VPNCredentialsHelper $username = "Redacted"; $plainpassword = "Redacted"; $hostname = 'redacted-stc-redacted.whiskergalaxy.com'; $name = "Windscribe IKEv2 Redacted Static IP"; Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0 Enable-NetFirewallRule -DisplayGroup "Remote Desktop" Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1 Add-VpnConnection -Name $name -ServerAddress $hostname -TunnelType "Ikev2" -EncryptionLevel "Maximum" -AuthenticationMethod Eap -SplitTunneling $False -PassThru -RememberCredential $True Set-VpnConnection -Name $name -SplitTunneling $False Set-VpnConnectionIPsecConfiguration -ConnectionName $name -AuthenticationTransformConstants GCMAES256 -CipherTransformConstants GCMAES256 -EncryptionMethod AES256 -IntegrityCheckMethod SHA384 -DHGroup ECP384 -PfsGroup ECP384 -PassThru -Force Set-VpnConnectionUsernamePassword -connectionname $name -username $username -password $plainpassword -domain ''