Restore wireless connection after imaging?

Not applicable

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 4

Damon_Byg
New Contributor III

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.

jarednichols
Honored Contributor

power cycle the wifi card.

cbrewer
Valued Contributor II

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
Valued Contributor II

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!