I am working on a powershell script to connect cisco vpn using powershell, I am able to connect to vpn but not sure how to add new group to vpn. I am using the following script
$vpn_profile = 'Test' $username = 'TestUser' $userPassword = ConvertTo-SecureString -String "Password" -AsPlainText -Force $credentials = new-object -typename System.Management.Automation.PSCredential -argumentlist $username,$userPassword $password = $credentials.GetNetworkCredential().Password Set-Location 'c:\Program Files (x86)\Cisco Systems\VPN Client' .\vpnclient.exe connect $vpn_profile user $username pwd $password Write-Host "You Are Connected" cd "C:\"
↧
How to add new group entry in Cisco Vpn using powershell
↧