ARD Commands

Good afternoon:
I'm looking for two seperate commands:
1. I'd like to be able to log an entire lab in with a common user name and password without having to touch each screen
2. I'd like to be able to push out new Active Directory binding settings to a group of computers (i.e. change smb to afp)
Any assitance is appreciate!
Thanks,
Jay
P.S. Any good reference books out there on this topic that you'd recommend?

For multiple user log on use:
osascript <<EOF
tell application "System Events"
keystroke "username"
keystroke tab
delay 0.5
keystroke "password"
delay 0.5
keystroke return
end tell
EOF
For number 2 and assuming there's an existing AD configuration:
dsconfigad -protocol afp
Or:
dsconfigad -protocol smb
If you're trying to do one from scratch and using example.com as the example assuming you want all the "bells and whistles" you could use:
dsconfigad -f -domain examle.com -u ADadminname -p ADadminpassword -ou OU=Computers,DC=example,DC=com -preferred IPAddressofDC -localhome disable -protocl smb -passinterval 0
Run the commands root.
I don't know of anything specific or detailed enough TBH. IMHO looking at the man pages in Terminal is as good a place as any to start.
HTH?
Tony

Similar Messages

  • Is there an ARD command or Unix command that I can send to reset the desktop background image to default?

    I was forced to create a local user with an automatic login on all of the machines in the building. I listed off many various issues that could come arise by doing this but was tuned out. Now people are changing all of the desktop backgrounds to some pretty inappropriate images. I forewarned the person ordering this that this may be one of the many issues that would arise when doing away with our server based logins, and now I am charged with fixing every desktop every time someone changes it to something inappropriate.
    Is that an Apple Remote Desktop command or a Unix command that I can send through ARD v3.5.3 to the machines to reset the desktop background image to the default Aqua Blue jpeg image located in the /MacintoshHD/Library/Desktop\ Pictures/Aqua\ Blue.jpg.
    The machines that I am dealing with have OS X 10.4.11, OS X 10.5.8, OS X 10.6.8, and OS X 10.7.4 installed on them, but the OS X 10.4.11 machines are the ones that are creating the biggest issue so I would like to deal with those first.

    Ya, I'd love to have the computers connected to the Xserver, unfortunately against my heeding, I was ordered to take them off of the Xserver, so they only have a local account that automatically logs in on startup, and even though I have Parental Controls set, I can not stop them from going to Safari, selecting an inappropriate image and setting it as the background, so now I’ve been ordered to fix all of the backgrounds that people are messing with.
    My Xserver is running OS X 10.4.11 Server Edition. Yes, I would love a new server, but that’s not happening due to budget cuts.
    So what I am hoping for is a command that I can put into Apple Remote Desktop v3.5.3 and push out to all of the computers via its Unix commands and reset all the desktops to their default image.

  • Using Sent Unix Command in ARD 3 with proxy authentication

    I'd like to use Unix commands to update Apple software through ARD thus allowing me to lock the computer screen before the process using the ARD command to do so, thus keeping the users from interfering with the process .
    Our network utilizes password protected firewall proxy that hangs ARD when using the softwareupdate command through ARD's "Send Unix Command..." at the point in which it would ask for authentication if using the same command in the terminal.
    Is there a Unix/terminal script or a series of script commands that could be modified to wait and enter the appropriate authentication at the previous mentioned prompt?
    I've researched this topic on this forum and discover a few post that states it is not possible but they are fairly old posts so I am hoping ARD 3 has some scripts or commands that can pass thru a username and password

    Welcome,
    I use the "System Events" handler, e.g.:
              tell application "System Events" to delay 5.5
              tell application "System Events" to keystroke "K"
              tell application "System Events" to delay 0.5
              tell application "System Events" to keystroke return
    Regards,
    Shawn

  • SSH / ARD no longer working on 10.6 Server

    This happens quite often. Too much for my liking actually.
    Randomly SSH or ARD will stop working.
    SSH, Port 22 Connection Refused.
    ARD Not Active.
    Makes no sense. Both Remote Login and Remote Management are on in Sharing Prefs Pane.
    SSH should never, ever get turned off, ever, or Connection Refused (for / from me).
    If I can at least get to the server via SSH, I can then use the Kickstart ARD command and get ARD going again.
    I also can not ssh to server using their FQDN, even though they are in the DNS. I have to use their IP addresses only.
    Any ideas.
    thanks,
    John

    Look at the server side:
    /var/log/secure.log
    This is where sshd sends its error messages.
    If the information does not contain sufficient details, you can modify the server side
    /etc/sshd_config
    Changing:
    #LogLevel INFO
    to:
    LogLevel DEBUG3
    Notice that the # comment character is also removed.
    Now restart server side sshd by stopping/starting System Preferences -> Sharing -> Remote Login
    Now go back and look at
    /var/log/secure.log
    After the next failure.  NOTE: you shoudl most likely restore /etc/sshd_config back to its original state after you figure out what has gone wrong.

  • Setup error 530 invalid command line!!!!??

    hi guys,
    i have the following error in my addon installation process
    <i>"Setup error 530 invalid command line"</i>
    all my files .ard and setup.exe was generated correctly but whene i try to install my addon
    image capture
    http://aycu19.webshots.com/image/13218/2000674717812036508_rs.jpg

    Hi Manza,
    What are you using to create your setup?
    Have you tried the B1DE package? It contains 2 wizards to automatically create the setup of your addon together with the .ard file.
    You can try to use it at least to use it as a sample of what is needed for your setup.
    Are you setting something in the .ard Command Line arguments for installing/deinstalling your addon? Maybe the error is talking about it...
    Regards
    Trinidad.

  • Can ARD Partition Drives Remotely?

    I have a lab of 30+ Mac's and I'm looking to Partition the HD's & I was wondering if there is a ARD command to do this remotely rather than going to each Mac.
    We will be having a group coming in that will be using a lab full of Mac's and they will have their own image to put on the computers but as we still have students in the labs during the day we are thinking of putting the image on a second partition the day before.
    Tks,

    ARD has no such command itself. However, you may be able to do this by sending a UNIX command, though I think this is only possible for Intel-based Macs. Look up the man page for:
    diskutil
    and read up on the
    resizeVolume
    flag. There's also an article on it here:
    http://www.macworld.com/article/55274/2007/02/marchgeekfactor.html
    I have not tried this nor even contemplated doing this remotely, so I don't know if any problems might arise nor even if it will work. It's probably worth trying on a test system, though.
    Hope this helps. Good luck.

  • Softwareupdate Command isn't pulling all updates

    Hello All,
    We have a server with ARD running the unix command "Sudo Softwareupdate -i -a" to 10 Mac Pros.
    The server and the Mac Pros are running OS X Mavericks 10.9.1.
    If I run the softwareupdate command, it picks everything up besides iWork, FCPX, Motion, Compressor, iMovie, iPhoto, and Logic X.
    When I physically logon to each workstation, I can see each update for the software I listed above; I can manually update each one but that's counterproductive to the ARD command.
    Is there any reason why the unix command isn't picking up certain updates?
    Thanks,
    Daniel

    Can anyone please assist?
    I'm just going to assume it's a bug from Mavericks because it worked well in Mountain Lion.
    -Daniel

  • Softwareupdate command on managed clients

    I have a software update server running with a bunch of OD managed clients set up to use it, and also some unmanaged clients that have it set in the sofwareupdate plist.
    If I send the softwareupdate command via ARD to these clients, will they use my server? I don't see any way to specify the server through the CLI, so I'm assuming it will, but figured I'd make sure first...
      Mac OS X (10.4.8)  

    I use this whole line as my ARD command (keeping it handy in a text file to copy and paste) I send with Unix:
    systemsetup -setnetworktimeserver my.timeserver.org; defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://my.suserver.org:8088/; softwareupdate -a -i
    This way I make sure it always uses the server I want to use.

  • How do I set the DVD region code via ARD?

    We recently deployed around 200 MacBooks in a k12 environment and manage them via ARD & WGM. We forgot to set the DVD region when creating our master image and as a result, every single MacBook prompts for an admin password when attempting to use the DVD Player to view a DVD for the first time.
    Instead of attending to each of the 200+ MacBooks personally and putting a DVD in and setting the region code one by one, is there a way I could do this via ARD? Unix command? Managed preference via WGM? Thanks, I appreciate any input.

    I've been working on this very topic for about a year. Here's what you need to know.
    1) setting the region code on your master image would result in the same behavior. Setting the region code triggers an update to the DVD drive firmware itself - it's not something that's stored in software. Obviously this is something that needs to be set on each machine individually. Setting it on the image won't affect the imaged-machines.
    2) Apple seems to have gone to great lengths to hide the app that triggers this action. If they had provided a simple CLI interface to trigger this on a client machine we'd be able to use ARD to trigger the action on all of our client machines. Alas, this app is buried somewhere I can't find and seems to only rear its head when a DVD with a region code is inserted into the drive. There is one idea that popped into my head while at Macworld that I want to try to see if I can find this app but I have my doubts.
    3) Failing my last ditch effort to find this app, I think our fallback will be to give users explicit rights to set the initial DVD region code on thier machines. This is something that can be done using WGM. There is a rule in /etc/authorication specifically allowing users/groups to set the region code for the first time. According to the notes, giving this access will NOT allow users to change the region code - which is a good thing - but only give them rights to do so the initial time. This way, we can empower our users to help themselves while also protecting them from resetting the region code accidentally.
    In conclusion, I haven't found any way to script/push this command to a client machine. I'll definitely file this with Bug Reporter and hope Apple will give us a CLI or an ARD command to trigger this action after imaging.
    G4   Mac OS X (10.4.8)  
    G4    
    G4    

  • Save As... dialog doesn't show mounted volume

    Roughly half the iMacs in my lab, Intels running 10.5.8, don't show the server share in the "Save As..." sidebar when the kids need to save a new document. The server shares are mounted ahead of time by a local AppleScript (with password) that is activated by an ARD command. The password is also registered in the keychain in all the iMacs. Might this be a complication of Parental Controls? A keychain issue?
    The server is a Mac G5, connected through Ethernet to all the iMacs.
    I can force recognition of the share by going backward through the drop-down menu, but that is a bit too complicated for my second graders, and it is time for them to learn to save on their own. Any help would be much appreciated.
    Thanks,
    HB

    so, yesterday it worked, then today again it doesn't. Could it be something with icons/themes?
    Isn't there some configuration file in my home I could try deleting?

  • Turning on Screen Sharing Remotely

    In an effort to try to get Back to My Mac working, I read I had to turn off Remote Management and instead use Screen Sharing. I'm traveling right now, so in a completely boneheaded move, I used VNC to turn off Remote Management and wouldn't you know it - it's instantaneous. It knocked me off VNC so I couldn't turn on Screen Sharing. Is there any way to turn Screen Sharing on through the terminal command line? Or even turn VNCserver on temporarily so I can do this through the GUI?

    Also, before copying files to server make sure ARD is turned off and will not start at boot:
    (From running '/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/ kickstart -help')
    - Stop the Remote Management service and deactivate it so it will not start after the next computer restart.
    */System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -deactivate -stop*
    More info on ARD command line options in http://images.apple.com/server/docs/ARD3.2_AdminGuide.pdf

  • Re-download individual Software Updates?

    I'm using the Software Update service on my Intel Xserve. It looks like my iTunes 7.6.1 download might be corrupt. Can I individually re-download it to my Software Update Server? I've tried the "Check Now" button in Server Admin, but no luck.
    OSX 10.4.11
    Xserve - 2 x 3 GHz Dual-Core Intel Xeon
    4GB 667 MHz DDR2 RAM

    Thank you for pointing me in the right direction. The following text is from the manual. When I went looking for the iTunes update, it was buried in with another update in /usr/share/swupd/html/061-4475
    I have proceeded to delete it and click the "Check Now" button on the Software Update Service GUI. Will report back on whether the service re-downloads the update and whether a client can update via ARD command line.
    --- SystemImage_and_SW_Updatev10.4C.pdf --- Page 75 & Page 76 ---
    To remove a specific software update:
    1 On the local Software Update server, open a Terminal window and type the following command to list the folders that correspond to each software update:
    grep swupd /etc/swupd/com.apple.server.swupdate.plist > ~/Desktop/update_list.txt
    This creates a file on your Desktop named update_list.txt. The file contains a list of all of the software updates stored on the server.
    2 Open the update_list.txt file. You’ll see that it contains information similar to the following:
    <string>/usr/share/swupd/html/061-2036/.../SecUpd2005-007Ri.tar</string>
    <string>/usr/share/swupd/html/061-2048/.../SafariUpdate-2.0.1.tar</string>
    Each update resides in a folder. In this example output, the folder /061-2048/ stores the Safari 2.0.1 update.
    3 In Terminal, type the following command to delete a software update from the server:
    sudo rm -rf /usr/share/swupd/html/updatefolder/
    Note: Substitute updatefolder with the name of the folder that stores the software update you want to delete.
    For example, to remove the Safari 2.0.1 update, you would type the following
    command:
    sudo rm -rf /usr/share/swupd/html/061-2048/
    Enter the administrator password when prompted.

  • Unix softwareupdate through proxy

    Has anyone successfully used the UNIX update over a secured proxy?
    I'm having trouble as the UNIX request hangs at the proxy request, and does not prompt further for user and proxy password as it would when run through the terminal locally. If it did prompt, I'm not sure I could authenticate remotely as I don't think you can then send another UNIX command until the first has completed.
    Anyone one have any ideas as to a series of UNIX commands that would get this done? Is there a "respond @ prompt" command that could be entered or scripted?
    Any & all help appreciated.

    Perhaps I'm not presenting the problem clearly.
    I'd like to use Unix commands to update Apple software through ARD thus allowing me to lock the computer screen before the process using the ARD command to do so, thus keeping the users from interfering with the process and also keeping them calm (they seem to panic when watching their computer work without them :-j ).
    Our network utilizes password protected firewall proxy that hangs ARD when using the softwareupdate command through ARD's "Send Unix Command..." at the point in which it would ask for authentication if using the same command in the terminal.
    Is there a Unix/terminal script or a series of script commands that could be modified to wait and enter the appropriate authentication at the previous mentioned prompt?
    Thanking y'all ahead of time,
    dano
    Multiple G5 iMacs and PowerMacs   Mac OS X (10.4.3)   some running 10.3.9

  • How do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    how do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    killall "Remote Desktop"
    Regards.

  • Problems using "open items" command in ARD

    Hi,
    Having problems while using the "open items" command from ARD. The "Copy" function works well but when trying to open the file I get the message "Failed".
    I suppose I am doing something wrong, any help is appreciated!

    ...  having problems ...
    We don't know what problems you are having

Maybe you are looking for