Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set-ExecutionPolicy Unrestricted # Allows scripts to be run if cust exec policy is still active despite running as admin,
- $InstallationPath = "C:\Program Files (x86)\My Company\Company Product\Product.exe.Config"
- ##newDBinfo - Edit this:
- $User = "" #Enter User here e.g Bob
- $PWord = ConvertTo-SecureString -String "Password123" -AsPlainText -Force #Enter the password in plain text here
- $compIP = "Enter Customer IP here" # Enter cust instance Public IP here
- $VPNPresharedKey = "Enter Customer preshared key here" # Enter cust Pre Shared key here
- $Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $User, $PWord
- Add-VpnConnection -Name $User -ServerAddress $compIP -TunnelType L2tp -L2tpPsk $VPNPresharedKey -RememberCredential #-AuthenticationMethod Pap
Advertisement
Add Comment
Please, Sign In to add comment