Deploy PPTP VPN Settings for remote workers
Hi All,
I need to use applescript, so that we can email / copy the script to our remote users and they can execute it to setup PPTP VPN to our work vpn server.
I have never used applescript and google led me to a apple forum post with the following, the problem I am facing is, that I can’t seem to name the VPN connection, neither i can give it a pptp vpn server address, dns, default gateway and any custom routes.
How can I add those fields / enteries in ?
http://discussions.apple.com/thread.jspa?messageID=10368307
tell application “System Preferences”
reveal pane “Network”
activate
tell application “System Events”
tell process “System Preferences”
tell window 1
click button “Add Service”
tell sheet 1
click pop up button 1
click menu item “VPN” of menu 1 of pop up button 1
delay 1
click pop up button 2
click menu item “PPTP” of menu 1 of pop up button 2
click button “Create”
end tell
click button “Apply”
end tell
end tell
delay 1 — optional (just for visual feedback)
keystroke “w” using {command down}
end tell
end tell
will be grateful for your help on this
Thanks
I need to use applescript, so that we can email / copy the script to our remote users and they can execute it to setup PPTP VPN to our work vpn server.
I have never used applescript and google led me to a apple forum post with the following, the problem I am facing is, that I can’t seem to name the VPN connection, neither i can give it a pptp vpn server address, dns, default gateway and any custom routes.
How can I add those fields / enteries in ?
http://discussions.apple.com/thread.jspa?messageID=10368307
tell application “System Preferences”
reveal pane “Network”
activate
tell application “System Events”
tell process “System Preferences”
tell window 1
click button “Add Service”
tell sheet 1
click pop up button 1
click menu item “VPN” of menu 1 of pop up button 1
delay 1
click pop up button 2
click menu item “PPTP” of menu 1 of pop up button 2
click button “Create”
end tell
click button “Apply”
end tell
end tell
delay 1 — optional (just for visual feedback)
keystroke “w” using {command down}
end tell
end tell
will be grateful for your help on this
Thanks
Macbook, Mac OS X (10.6.5)