【问题标题】:How to configure Juniper Networks SA VPN connection settings with Powershell如何使用 Powershell 配置瞻博网络 SA VPN 连接设置
【发布时间】:2012-02-07 22:29:58
【问题描述】:
【问题讨论】:
标签:
networking
windows-7
powershell
powershell-2.0
vpn
【解决方案1】:
我下载了它,它似乎有命令行参数等
nclauncher /?
nclauncher [-url Url] [-u username] [-p password] [-r realm] [-help] [-stop] [-signout] [-version] [-d DSID] [-cert client certificate]
例如:
nclauncher.exe -url https://sa.testing.com -u giantsUser -p password123 -r Users
所以powershell脚本会是这样的:
$url = "https://sa.testing.com"
$username = "giantsUser"
$password = Read-Host -assecurestring "Please enter your password:"
cd "C:\Program Files\Juniper Networks\Network Connect 6.5.0"
.\nclauncher -url $url -username $username -p $password # other params ...
如果您知道更好的解决方案,请告诉我,我会接受的。