Suljettu

Create Apple Script / Application to mount Network share and VPN

Hello

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:

try
do shell script "ping -c 1 -t 1 192.168.1.8"
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

try
mount volume "smb://192.168.1.8/"
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

2 freelancers are bidding on average €30 for this job

moorthy978

A proposal has not yet been provided

29 € EUR 5 päivässä
(2 arvostelua)
1.8
30 € EUR 1 päivässä
(0 arvostelua)
0.0