Script file on Apple Mac Welcome Screen

Posted on 2013-10-15
Medium Priority
Last Modified: 2013-12-27
I would like to create a script which runs on Mac Bootup and enables wifi connections. at the welcome screen and if possible connects the user to a Network Location depending on assigned IP Address Range. Is this possible?

Were really having issues at the moment as Mobile Accounts are not working for us

Question by:James Wilkinson
  • 2
LVL 41

Expert Comment

by:Eoin OSullivan
ID: 39576077
The short answer is NO.  Connecting to WiFi and network location prior to login is not a feature of OSX.  By default WiFi is not enabled in terms of login and authentication until you login.

The longer answer is that it is possible to enable WiFi on bootup with a bit of Unix knowledge and core system modification but it is not for the faint-hearted.

See the posting here on the Apple website by 'essd' which explains how to create a plist file to enable WiFi and pre-login to a specified network
there is also a clever way to use the iPhone configuration utility to create a deployment profile which can be used for computers to pre-login to a certain network

There are some AppleScripts that can mount certain network drives at login .. but to detect the IP range and then selectively mount certain network shares is a good bit more complex.

This piece of AppleScript will search for a specific IP and if it gets a response it will mount the volume - it does require you either hardcode the username and password or enable guest access to each network share.
set IP_Address to "xxx.xxx.x.x"
tell application "Finder"
set P_Result to (do shell script "ping -c 1 -q " & IP_Address)
if "100% packet loss" is not in P_Result then
mount volume "smb://GUEST:@xxx.xxx.x.x/SharedDocs"
end if
end try
end tell

Open in new window


Accepted Solution

James Wilkinson earned 0 total points
ID: 39735466
We found our issue. The Root user was not enabled n the Directory Utility

When Binding the Mac to AD or OD using the Directory Utility click Tools and select enable Root User and set a password.

Once we enabled this things became reliable and all the welcome screen blips stopped. We employed an Apple Specialist to highlight our issues and this is the first thing he picked up on

Hope this helps someone else that may be in our position

Author Closing Comment

by:James Wilkinson
ID: 39741504
Working Solution

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

CocoaPods is the best way to manage library dependencies in iOS and OS X projects. By using cocoa pods there is no need of downloading the code from github and copying to your project. There are plenty of open source libraries now available with C…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question