Skip to main content
Question

Restore wireless connection after imaging?

  • July 9, 2009
  • 4 replies
  • 6 views

Is there a trick to getting a computer to restore a wireless connection
after imaging? We have a common SSID and WPA key for wireless. My image
is created with the credentials saved and the wireless network is actively
connected on the computer. After imaging, the credentials are still there
in keychain and our network is listed in preferred networks but it won't
connect automatically. You have to login and select the wireless network
in the menu bar to make it connect.

This worked at one point, but maybe it was before we used Casper imaging. I am pretty sure this wasn't a problem when I was creating my image with
NetRestore.

Thanks,
Chad

4 replies

Forum|alt.badge.img+4
  • Contributor
  • February 22, 2013

I'm having this same issue. I set up the wireless on the laptops before I imaged them, but after imaging I have to connect to the wireless.


Forum|alt.badge.img+24
  • Valued Contributor
  • February 22, 2013

power cycle the wifi card.


Forum|alt.badge.img+15
  • Esteemed Contributor
  • February 22, 2013

I run a script at reboot after imaging.

#!/bin/sh

os_version=`sw_vers -productVersion`

if [[ $os_version =~ "10.7" ]] || [[ $os_version =~ "10.8" ]];then
  wifiport=`/usr/sbin/networksetup -listallhardwareports | grep -A 1 Wi-Fi | grep Device | awk '{print $2}'`
  /usr/sbin/networksetup -setairportpower $wifiport on
fi

if [[ $os_version =~ "10.6" ]];then
  /usr/sbin/networksetup -setairportpower AirPort on
fi

Chris_Hafner
Forum|alt.badge.img+27
  • Jamf Heroes
  • July 31, 2013

I highly recommend using profiles unless you're too invested in MCX. If that's the case I would begin creating profiles to replace your MCX settings. It's so much easier!