Guest User

Untitled

a guest
Feb 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #Sleep Deprived Loon (The real one)
  2. #06/02/2018 GTM +0 22:03 @undisclosed location
  3. #For PROGRAMAR, thanks for the oportunity to work with you guys!
  4. #
  5. #SoftEther VPN Connection Creator for Windows Power Shell Under Windows 8.x and above
  6. #Rev0.0.2 (auto switch execution policies to run script and avoid security issues, prompt user for parameters)
  7. #
  8. #SleepDeprivedLoon 2108 (Dont waste time! Live! Cause life is to short to be wasted!"
  9. #The fault in our stars!
  10. #
  11. #Be amazing, be yourserf be a ficking bad ass geek! Stay hungry, stay foolish!
  12.  
  13. $policy = Get-ExecutionPolicy
  14. $name = Read-Host -Prompt 'Insira o nome da ligação'
  15. $serverAddr = Read-Host -Prompt 'Insira o endereço do servidor'
  16.  
  17. Set-ExecutionPolicy Unrestricted
  18. Add-VpnConnection -Name $name -ServerAddress $serverAddr -TunnelType Sstp -EncryptionLevel Required -SplitTunneling -AllUserConnection -RememberCredential -PassThru
  19. Set-ExecutionPolicy $policy
Add Comment
Please, Sign In to add comment