Add a preferred wireless network

I want to configure the wireless preferred networks on a pool of 25 computers at once while no users of the console/GUI/admin is entered, that is to say the computers are provisioned waiting on the registration screen. All computers are properly configured for access "remote management".

I'm looking for something in Apple Remote Desktop to add some favorite wireless networks with the terminal command "networksetup" to these remote computers

I got the terminal command:

sudo networksetup - addpreferredwirelessnetworkatindex en0 ssid 0 wpa2 password

Any help?

Hi basil,

-Something that should work can use the ARD from the Mac Admin officer, to run ssh sessions by officials of the ARD on clients, and then run the Terminal command.

-J' used a script like this before restart locked ARD Agents on clients via ssh.  No GUI sessions running on the clients.

The script Unix in ARD would be similar to:

for N in 'client1.local' 'client2.local' 'clientn.local '.

do

{

SSH '$N' 'sudo networksetup - addpreferredwirelessnetworkatindex en0 ssid 0 wpa2 password.

}

fact

-The script is run using an adminuser which is available on each client with ssh keys setup (no password) and an entry in/etc/sudoers so the sudo command prompts nor a password.

-L'adminuser can be activated for this task in a separate script:

Disable: chsh s operation adminuser

Administer enable: chsh-s/bin/bash

hope this helps, dwbrecovery

Tags: Servers and Enterprise Software

Similar Questions

  • "You have no preferred wireless networks.

    Hello

    I installed Build 7100 and have been finding problems in all directions. Is it the right place to report issues? The dev team will never receive any comments posted here?

    I have a specific problem that is driving me crazy and if it is not sorted there is no way I will buy Windows 7 when it is released. Whenever I reboot or exit the mode 'sleep' my wireless network was disconnected. The problem is that it automatically reconnect. In fact when I try a reconnection he asks me the password all over again as if she had never met before network. In addition, I have try three or four times before it connects without error. The network is also extremely stable and was under XP.

    The Troubleshoot utility of reports "You have no preferred wireless networks", which is false, because I connect automatically is always checked for this SSID. I tried which allows to 'Connect even if the network is not broadcasting its name (SSID)', but this option is reset after reboot / sleep. "Connect automatically" is still however verified. Installed with the driver is REALTEK USB Wireless LAN Utility Version 402.1470.518.2007.

    I fear that such problems will not get noticed at Microsoft because they are now focusing only on telemetry. I want to buy Windows this time, I don't really, but I won't buy a defective product.

    I connect to the Router 1 billion (BiPAC 7401VGP R3) with a USB (BiPAC 3012 G) wireless network adapter.

    Hi Vargorlopano,

    Thanks for posting on the Forum of answers.

    Some network cards have to be able to save the settings that will put your NIC sleep when Windows goes to sleep.

    You can click Start, type "power options" then right click on the entry that is displayed at the top of the menu and click on "Run as Administrator".
    Your password can be asked to you.
    On the right side of the window, click on "Change plan settings", then click on "change power avancΘs."
    You should see an entry in the list that says 'wireless adapter settings', change it to 'Performance', and click OK.
    Click on save changes.

    Please let us know if that helps.

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • MacMini don't auto connect to the preferred wireless network when the router reboots

    My MacMini is located to join my favorite wifi network. Where I stay, there is usually a power failure close to a minute or two during the day.

    My setup is such that my MacMini running 24 x 7 with a backup uninterruptible but my router (AirPort Express) turns off during the power outage. When the router goes off, my Mac disconnects from the network which should, but now when my router turns, the MacMini reconnect to the preferred network.

    It shows the network preferred list, and when I manually click on this subject, it reconnects immediately without asking for password. But this will not happen automatically.

    If I restart my MacMini it reconnects very well. The problem occurs only when my MacMini is but my router restarts.

    To reproduce this problem on your side, just turn off your router and once your Mac disconnects from the network back on the router. See if your mac reconnects to your wifi fine.

    Any solution or advice for this problem?

    Thank you.

    Please test after taking each of the steps that you have not already tried it. Stop when the problem is resolved. Back up all data before making any changes.

    1. If possible, test at another network, such as a public access point or hotspot created by a mobile phone. Some Wi - Fi routers are not fully compatible with Apple devices. More specifically, the security mode for the network, as shown in the network preferences window, should be 2 personal WPA or WPA 2 Enterprise. If the router doesn't support either of these modes, it should be replaced with another.

    2. make sure that the network is on the list of favorites by following these instructions. It is important to read the article, as it is the starting point for further efforts to solve the problem. If you skip any step, the problem cannot be resolved. Make sure that the box marked

    Remember this computer has joined the network

    is checked.

    3 follow the instructions in this article to support.

    4. reset the PRAM.

    5. take note of all your parameters of connection Wi - Fi in the network preferences pane, then remove the connection in the connection list and re-create it with the same settings. This by clicking on the icon of the lowest sign from the list of connection, select Wi - Fi as the interface in the form that opens. Select join the other network in the network name menu, then select your network. Enter the password when you are prompted, and then save it in the keychain.

    6. in the menu location at the top of the network preferences window, select Edit locations. A sheet will fall. Click on the plus sign to create a new location. Give it the name of your choice. In the new location, set up the Wi - Fi service with the same settings that you used before. Click on apply and test.

    7. run the Keychain Access application. Find and remove all the network password AirPort elements that refer to the network. Make a note of the password first.

    8 turn off the Bluetoothand the test.

    9. reset the system management controller.

    10. This step should not be necessary, but he has been advised by the Apple Support in some cases, apparently as a solution for a bug. Open the energy saving pane in system preferences. If necessary, click the lock icon in the lower left corner to unlock the settings. When prompted, enter your administrator login password.

    Select the Power Adapter tab and uncheck the boxes marked

    Continued access to the Wi - Fi network

    and

    Enable the NAP...

    If it is present. Then, if the computer is a MacBook, select the stack tab and uncheck the box

    Enable the NAP...

    11. reinstall OS X.

  • No preferred wireless networks

    I can't connect to my home on my 8 because windows network that he keeps saying that I have no preferred networks even if my wifi works on other devices. How can I fix it?

    Hello

    Thanks for posting your query on the Microsoft Community.

    This problem can occur because of network settings.

    I would be grateful, if you can provide us with the following information to help us better understand the issue:

    • This work has been much earlier on this computer?
    • What is the brand and model of your system?

    I suggest you to follow the below methods and check.

    Method 1:

    I suggest you to run this utility from the following troubleshooting and check if it helps.

    Network troubleshooting:

    Open the network troubleshooter utility by hitting swipe in the edge right of the screen, tap Find (or if you use a mouse, pointing to the top right of the screen, move the pointer of the mouse down and then clicking search), saving troubleshooting network in the search box, touching or clicking on settings, and then type or identify and fix network problems.

    Troubleshooting network adapter:

    Open the network adapter troubleshooting utility by hitting swipe in the edge right of the screen, tap Find (or if you use a mouse, pointing to the top right of the screen, move the pointer of the mouse down and then clicking search), entering the troubleshooting in the search box, touching or clicking on settings and then by typing or clicking on the resolution of the problems. Press or click Network and Internet and then press or click on the network map.

    If the problem persists, try Method 2,

    Method 2: Wi - Fi and in Windows network connection issues:

    http://Windows.Microsoft.com/en-us/Windows/network-connection-problem-help#network-problems=Windows-8&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    See also:

    Why can't connect me to a network?

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • Wireless network does not work when I put a password

    Well actually, I use a wireless network at home, and when I try to put a password, it won't let me connect to the internet, but my xbox connect when there is a password there and other laptops don't. When I try to connect by using a non-secure network it connects to the internet, but on any other laptop but mine it asks me to set up the connection, while on my laptop, it goes straight to a connection.

    If you guys can offer me a solution to this problem, I would be very grateful

    Hi Sh4dow,

    You can check out the following link and check if it helps:

    View your preferred wireless networks

    http://Windows.Microsoft.com/en-us/Windows-Vista/view-your-preferred-wireless-networks

    You can also temporarily disable the security software and firewall installed on the system and check if the problem persists. If this resolves the problem, then you may need to update or change the settings of the security software.

    Note: Be sure to enable the security software on the computer after checking.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • By selecting automatically to a specific wireless network

    My computer connects to another network other than mine wireless regularly, and then I have to change the network manually.

    I can force my computer to logon to a specific network?

    Thank you

    Doug

    Hello

    In fact, you can change the order in which your computer connects to networks, drag the networks upwards or downwards in the list of wireless networks. To change preferences for the network, right-click the network, and then click Properties.

    As you mentioned that your computer connects to another network, this problem may occur if one of the following is true.

    1. your computer is located between two networks that you have connected to before.

    To resolve this situation, you can do the following:

    (1) move your computer to one of the networks. With the access points or routers 802.11 g and 802. 11 b, is the maximum range of up to 150 feet (46 m) indoors and 300 feet (92 meters) outdoors. With 802. 11A routers and access points, the maximum range is 50 feet (15 meters) indoors and 100 feet (30 meters) outdoors. These ranges are in optimal conditions without interference. Keep in mind when deciding where to locate your computer.

    (2) turn off the automatic passage in one or two network profiles. Please follow the steps:

    a. Click here to open manage wireless networks.

    b. right-click on the network profile that you want to disable the automatic switching, and then click Properties.

    c. click the tab connection, clear the connect to a network more preferred if possible check box, and then click OK.

    2 If a network on your list of preferred wireless networks the same SSID as another network that is in range of your computer, Windows might try to switch between the two routers or access points because they feel that they are on the same network. This can happen in places such as apartment buildings or neighborhoods where people have the same network hardware and have not changed the default settings.

    To resolve this issue, give a unique SSID in your router or access point. See the documentation provided with the device to find out how to change the SSID.

    3. in the meantime, please visit the help and Support Windows for more information.

    http://windowshelp.Microsoft.com/Windows/en-us/help/89adebd1-06a4-43ec-A33B-5964b436f96d1033.mspx#E4AAC

    Hope this helps

  • Connection to the wireless network trouble at the start of Windows 7

    I have configured my computer will automatically connect to my home network, but at the start, it aims rather to connect to 'SoftAP-C0', a network with zero signal strength that probably belongs to one of my neighbors. It is impossible to connect and displays "waiting for users ' instead of 'connected' or 'disconnected '. I then have to disconnect this network manually connect to my network home and enter the security key. Because my computer never gets to actually connect to the network SoftAP, I can't access the configuration window to disable the automatic connection (if it is still what makes my computer trying to connect to it in the first place.) Is there another way to access its configuration (otherwise than through the network and sharing Center)?

    Hello

    You can see a list of available wireless networks and then connect to one of those networks, no matter where you are. The wireless networks appear only if your computer has a wireless network adapter and driver installed and the adapter is turned on.

    If you want Windows to ask permission before attempting to connect to a wireless access point, you can Turn off wireless on the laptop.

    You can have a switch on the laptop turns off the same. Turning off Wireless is specific to the model of the laptop.

    You can follow the links below to set up your preferred networks.

    How to prevent my computer from switching between two preferred networks?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-prevent-my-computer-from-switching-between-two-preferred-networks

    View your preferred wireless networks

    http://Windows.Microsoft.com/en-us/Windows7/view-your-preferred-wireless-networks

    How to prevent my computer from switching between wireless access points?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-prevent-my-computer-from-switching-between-wireless-access-points

    Hope this information is useful. Please let us know if you need further assistance.

    Concerning

    Rehman - Microsoft Support

  • Impossible to manually add the wireless network

    I need to manually add a wireless network to the laptop. When I click on add in the wireless connection properties window, however there is no pop-up window. If I try on a similar laptop windows wireless network properties appears. The Wireless Auto-Configuration service is started. How can I get the wireless network properties window?

    I was finally able to solve this problem and I posted the results on another forum, I used for this purpose.  Here is the text exactly as I posted on the other forum.  It answers some of your questions.
    Regarding other software that manages the wireless card, Yes, there are (Atheros), he was not managing the adapter (off a long time ago), however, to be sure, I removed it to run in the registry.

    Here is the text of how I solved the problem, I mentioned.  If you have more questions, feel free to post them.

    *****

    I am just posting this here because I could solve the problem and not able to find a reliable source on the internet on a fix for this and for a problem that is the result of my attempts to fix it.

    This is the situation and my landline.

    I was getting this error message

    "Impossible to migrate dependent packages.

    After trying to install a pacakage KB. It did not matter that one but they have been associated with the Wireless settings.

    I continued to try to install the newer packages.
    KB893357
    KB917021
    KB918997

    Each gave me the same message

    "Impossible to migrate dependent packages.

    I read online that I install KB937143 (update IE7) could help.

    I did this and still got the same message on dependent modules.
    I also had another problem occur.
    In the section my network places properties connection wireless adapters, whenever I clicked the Add button / PROPERTIES without window appears to allow me to change the settings, however, I was able to remove items from the preferred networks window.

    My Automatic Configuration Service wireless is running and took Windows to configure my wireless settings.

    I downloaded the updates for my driver Wlan (WiFiHP 500) and I still had the same problems.

    I restarted KB918997 using the/log option and read the log file. This is the last important lines:

    33.849: MigrateHotfix: hotfix migration KB937143
    34.129: migrating QFE KB937143 with command line: update.exe z q - B: sp2qfe
    36.783: failed 1603 Update.exe.
    36.793: MigrateHotfixes: KB937143 Migration failed
    36.793: DoInstallation: Migration failed
    36.933: failed to migrate dependent packages.
    39.597: message displayed to the user: cannot migrate dependent packages.

    I then uninstalled the KB937143 package and reinstalled KB918997 update with the newspaper of Pétion and he went along. I also tested the buttons add and PROPERTIES in the window of Favorites and those networks worked too.

    I checked the logfile KB918997 and he showed this:
    42.311: MigrateHotfix: hotfix migration KB932168 have
    42.511: migrating QFE KB932168 have with the command line: update.exe z q - B: sp2qfe
    88.768: MigrateHotfix: Hotfix KB932168 successfully migrated
    88.768: MigrateHotfixes: return code: 3010
    88.928: DoInstallation: Migration succeeded

    As a side note, I restarted the laptop frequently just to be sure.

    So, really, the option of running with the Ko log file helped me diagnose the problem.

  • How can I add a printer to my wireless network

    How can I add a printer to my wireless network

    John

    I assume that you have a wireless printer. If so, the software is different from each manufacturer, but it is similar to this. Before starting the installation, make sure that you have a USB cable at your fingertips and you know your network name (SSID) and wireless key. Install the software and follow the prompts to set up the connection Wireless for the first time. Once it has been set up you can unplug the USB cable.

    The USB cable is not required on subsequent computers, simply install the software and follow the prompts on the screen of an additional computer (or similar wording). You may need to enter an SSID and Wi - Fi key, after which the printer must be accounted for.

  • How to do to add a Windows XP existing home wireless network

    Existing wireless network computer is a Windows Vista laptop and I want to add a Windows XP computer using a flash drive or a CD or?

    Hi fouffana,

    See the article and check if that helps.

    Add a device or computer to a network

    http://Windows.Microsoft.com/en-us/Windows-Vista/add-a-device-or-computer-to-a-network

  • Cannot add new wireless networks in Windows 7

    I have an Asus laptop with a Realtek wireless card. Updates of drivers and windows are the latest versions. I can't add any new wireless connection. There is a list of the available connections but when I try to connect, nothing happens. I can connect to the old wifi networks without problem, but I have moved and have a new connection that I can not add, even when I try to do it manually with the network and sharing Center. It is not fair to this network, I could not connect when I was traveling either. I uninstalled and everything re-installed twice no longer useful. Help!

    HI Margaret,.

    Please contact the Microsoft community.

    1. you are getting error messages?
    2. What is the number of the model of the computer?
    3. have you made changes on the computer before this problem?

     
    Method 1:

    Using the troubleshooter from network in Windows 7

    Method 2:

    I suggest you to go through the steps mentioned in the link and the Coachman.

    Windows wireless and wired network connection problems

    For more information, you can check the link below:

    Wireless network card: frequently asked questions

    Keep us updated on the status of the issue persists. We will be happy to help you.

  • Windows 7 laptop cannot add wireless networks

    If I try to connect to a wireless network, that nothing is happening. Specifically the window network bit comes, I choose a network, I click on connect and then the window disappears and nothing else happens. And if I try to manage wireless networks and add a network manually in the Control Panel, press the 'Add' button does nothing.

    This computer was working perfectly until today.

    Hi, see if running the System File Checker allows. For detailed instructions, see:

    Use the System File Checker tool to repair missing or corrupted system files
  • I want to add another computer to my existing wireless network

    Ask the installer for my "SSID".  It's been so long that I first set up my network that I don't remember what I used.  How can I find out what my "SSID"?

    The "SSID" is the name of your wireless network. Boulder computer Maven
    Most Microsoft Valuable Professional

  • 114 the desire does not connect to Asus all-in-one wireless but connects to the wireless network

    I just bought my HP ENVY 114 e all-in-one last week and I tried to connect it to my computer (Asus all-in-one Windows 7 64-bit) and while he wil connect to my wireless very well my computer (or my cell phone which is also an Asus running windows 7 64 - bits) cannot identify it.

    Using the disc doesn't help nor did try manually to add in 'Add printer' in my computer and all the interest to get this particular printer was because it was wireless. If I have to plug in a USB key then I have saved money and bought a less expensive model. All my devices are on the same network, and their firewalls is turned off so that it does not hinder the process.

    When you browse the drive Assembly he asks the IP and I get it exactly as it is on the screen printer that I even printed it out and double checked 5 times and it was exactly the same, but he keeps asking for me to be reintroduced to it since the computer cannot identify the printer.

    Any help would be great I prefer not to have to pack up this thing and take it back...

    Unfortunately, the router and the printer do not get along at this stage.  The IP address changes too often and it is possible that the router has its own firewall.  A large number of firewalls, outside the Windows Firewall, sees a lot of traffic from hpnetworkcommunicator.exe and blocks preventing the software to find the printer.

    I saw this model of router and it doesn't have a built-in firewall.  Unfortunately, I could not see their manual without you register on the site.

    It may be preferable to set a static IP address for the printer in the router's routing table.  To do this, you acceding to EWS the router.  If you don't know how to set the printer's IP address in the router, you can try to contact the vendor of the router.

    Otherwise, I would recommend checking the firewall of the router.  I saw a router cause problems with an overactive firewall in place.

    If you happen to have an extra router around, you can try to use it instead of Paul's to confirm that it is the router.

    EDIT

    You can try to put a static IP address on the front of the printer.  I'm personally not too successful with setting a static IP address on the front panel when the SAP does not load, but this could be one of those cases where it does not.

    First, print a Network Setup page by going to Configuration > Wireless > Network Configuration > print Network Configuration.

    Then, go to settings > network > IP settings > change to the manual.

    Once it is replaced by the manual, it should allow the IP address, default gateway and the subnet mask.  Use the subnet mask and default gateway of the print network configuration.  Use an IP address that is not in use on the network.  You can change the last number of the IP address on the print.  For example, 192.168.1.50 could be converted to 192.168.1.250.

    Setting a static IP address on the front panel does not set servers DNS which is necessary for ePrint operate on this printer.  Now that the static IP address has been set on the front panel of the printer, try to access the SAP by entering the IP address that comes to be defined in a browser address bar.  If the printer load, you should be able to set DNS servers and be ready to go from there.

  • HOW THE AIRPORT TIME CAPSULE WIRELESS NETWORK IS PROTECTED?

    I implemented the airport Time Capsule, using a DSL modem connected to the internet as its bridge.  MacBook Pro was used for initial set up by the bolt of lightning to Ethernet connector and then disconnected and works perfectly.  Now, I would like to use Wi - Fi for my Samsung phone not iOS.  On the Samsung wireless I connect to my home network using a password.  Well, I don't think that a password was never set.  How can I configure my wifi at home to establish a password?   I don't think that the modem settings should enter in solving this for me, but I'll add that the modem required a static IP address be entered for this connection when its router features have been disabled for the connection of bridge.

    If the Time Capsule (TC) provides the wireless network, then you can secure it using AirPort Utility, as follows:

    • Run the AirPort Utility.
    • Select the TC and then, select change.
    • Select the wireless tab.
    • In the wireless security, select the type of security. I highly recommend that you choose: WPA2 Personal
    • Enter a password in the field password wireless. Enter the same password in the verify password.
    • Select Update.

Maybe you are looking for