Create Apple Script / Application to mount Network share and VPN


I need a Script / Application that I can distribute to everyone in our company that does the following if possible:

Start the integrated VPN Client on Mac and establish connection

As soon as VPN connection is established, mount SMB Volume (specific IP)

When VPN connection is terminated, unmount SMB Volume.

If its not possible to start the vpn connection, we can also leave that part be and only mount the share.

If possible, it would be good if we don't have to include username and PW's in the script so I can distribute it without altering the script.

Is this possible?

We've elaborated on the following script. However it would need to be Login agnostic as this script only works when manualy clearing credentials in the account manager:

do shell script "ping -c 1 -t 1"
on error
-- we're not online, so connect the VPN
tell application "System Events"
tell current location of network preferences
set VPNservice to service "VPN (l2tp)"
connect VPNservice
end tell
end tell
delay 10
end try

mount volume "smb://"
end try

Taidot: Mac OS, Verkonhallinta, Shell Script

Näytä lisää: can create apple script update dns mac, script create setup file application, create telephone script job application, vpn network share, vpn network share internet, create sql script, create iphone database application, create simple iphone application, create database script, linux create command line application, create logon script server 2003 sets background, php script sub affiliate network, blackberry create splash screen application, centos create startup script, php create subdomain script

Tietoa työnantajasta:
( 0 arvostelua ) Switzerland

Projektin tunnus: #15812987

1 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_23% %project_currencyDetails_sign_sub_24% tähän työhön


A proposal has not yet been provided

€29 EUR 5 päivässä
(2 arvostelua)