Deploying AppleMail settings via ARD - is it possible?

Hello,
I want to set AppleMail settings for about 50 Users via ARD.
First of all IMAP settings, next account details based on the local non-admin user.
Any idea?
Thanks a lot!
Jochen

ARD cant do this directly, but you can send an OSA script to do this. Here is one I use. You send a UNIX command:
osascript -e 'tell application "System Events"' -e 'keystroke "q" using command down' -e 'end tell'
You can string together commands by using -e. This comes in really useful for product serial numbers, for instance:
osascript -e 'tell application "System Events"' -e 'keystroke "Company Name"' -e 'keystroke tab' -e 'keystroke "Company Location"' -e 'keystroke tab' -e 'delay 2' -e 'keystroke "REALLY long pointless serial number"' -e 'delay 2' -e 'keystroke return' -e 'end tell'
In this example, "delay 2" means wait two seconds. Older systems / apps will actually have an issue with receiving the keystrokes to fast, and do nothing. Quark is the worst offender here, and I need to run a delay of 5 seconds, even on mac Pros.
I also use it for logging in a bunch of system as a maintenance user. I will log out everyone, and then issue:
osascript -e 'tell application "System Events"' -e 'keystroke "Service User"' -e 'keystroke tab' -e 'delay 2' -e 'keystroke "myPasswordHere"' -e 'delay 2' -e 'keystroke return' -e 'keystroke return' -e 'end tell'
You will notice here that you need to hit enter twice... This is a bug in the login system. 50% of your systems will not continue with hitting enter only once in script (although they work perfectly fine hitting enter once at the keyboard).
Hope this helps.

Similar Messages

  • Deploy CUPS printers.conf file via ARD?

    Hi all
    Anyone have an idea how to push out CUPS Printers to Tiger clients using ARD 3? I have been trying to send out the printers.conf file located in /etc/cups to a few Macs, but after the CUPS file copies to its destination, print jobs error out with a generic "a printing error has occurred" message. I checked permissions, etc and everything looks good. I assume Im missing another file somewhere but am stumped.
    Basically what I want to do is set my Mac with 5 AppleTalk printers from my LAN, and then reproduce those printers for 10 other Macs so that those users see the exact same printers I see in my Print Setup Utility. I don't want to have to set up the printers manually on each Mac. I figured it would be a no-brainer to just copy my "golden" CUPS file via ARD to the other Macs but I'm having no luck at all thus far.
    Once the printers.conf file is copied to their Macs, They can "see" the new printers in their Print Setup Utility.app as desired, but they are unable to print to any of them ("printer error occured"). Rebooting doesn't help.
    Facts:
    All Macs and printers are in the same AppleTalk zone.
    All Macs are on the same subnet and VLAN.
    All Macs are the identical version of OS X and are from the same NetBoot NetRestore master image.
    All Macs are running 10.4.7.
    Users do not need to authenticate to print.
    All printing is done direct to the printers - no print server is in the middle.
    All Macs have the ARD 3.0 client properly installed.
    All Macs are Power Mac PPC G5s with 1.5 GB RAM.
    No users are logged into their Macs when I attempt to copy the printers.conf file (no users are printing or running Print Setup Utility etc)
    All of the printers are PostScript/PCL HP LaserJet's with valid AppleTalk names and Zone info.
    I can print to all of the printers just fine and my other Macs can print to them also when configured manually.
    There must be a practical way to mass-deploy CUPS printer settings to my Macs via ARD. Obviously I'm missing a critical step. Any ideas?
    Thanks!

    This is possible, but you have to be very careful because one mistake will cause this to fail:
    1. On your template computer system, reset the printing system via Printer Setup Utility then configure your printers.
    2. Backup the following files, noting their proper POSIX permissions:
    /etc/cups/printers.conf (root:lp, 600)
    /etc/cups/ppd (whole folder) (root:lp, 755)
    3. Use ARD to deploy the files in the following way:
    a. Log out all users on the client systems and reset the printing system by executing Apple's Reset Printing System script via Send UNIX command as root:
    /Applications/Utilities/Printer\ Setup\ Utility.app/Contents/MacOS/PrintingReset.sh
    b. Stop CUPS (PrintingServices) before copying any new configuration files (Send UNIX Command as root): SystemStarter stop PrintingServices
    c. Distribute the printers.conf file and ppds folder to the clients. You can either copy the items there via Copy Items, setting owner and group to root and lp, and issuing appropriate chmod commands via Send UNIX Command to set their permissions.
    d. Repair Permissions (Send UNIX Command as root): diskutil repairPermissions /
    e. Start PrintingServices again: SystemStarter start PrintingServices, and restart.
    That should work. You can also distribute a printer list via the managed client, storing a printer list in the com.apple.mcxprinting XML file in an attribute mapped to dsAttrTypeStandard:MCXSettings in a computer (dsRecTypeStandard:Computers) account or group (dsRecTypeStandard:Groups) account. Account types from NetInfo, LDAPv3, or Active Directory will work.
    --Gerrit

  • Change Parental Controls via ARD

    I'm trying to determine the most efficient way to add a particular application to 150+ users in 2 different facilities via "Parental Controls" in System Preferences.
    There doesn't seem to be any easy way to globally affect all the users' preferences. I'm hoping I don't have access each user station one-by-one. I was thinking that I could replace the related plist file in all the users, but I can't seem to find the one that drives parental control settings.
    Any ideas out there?

    hi mecklists thanks for your response.
    I've explored a workgroup manager-based solution, but right now that's not viable. I think I'm either gonna find a way to do it globally via ARD, or I'm gonna bite the bullet and go station-to-station.
    Specifically the problem is that users currently can't calibrate their monitors with the Display system preference, because some apps are made inaccessible through the parental control settings. I've discovered in need to make an application called "Display calibrator" available, along with the Colorsync Utility.
    The solutions I'm exploring are:
    - Create an automater/applescript script to launch globally through ARD. Main problem: I don't know how to do this, or even if this is possible.
    - Create a good plist file to copy into users' folders via ARD. Main problem: I can't figure out which plist files drive parental control settings, if any.
    - Go station-to-station. Problem: repetitive task which won't help me learn anything.
    -RR

  • How can I 'login' as a different user via ARD?

    It has been too many years and I cannot remember much of anything anymore...
    My main computer is running the ARD admin app. I have a 'server' that has the
    client software installed and setup to auto login to my admin account on the 'server'.
    I can easily connect to the server using ARD... however I would like to connect
    as a different user ( the postgresql admin account).
    Is is possible to do this via the ARD software?
    If I log out on my main admin account on the server while connected via ARD
    then the remote desktop software on my main
    computer reports that ARD in no longer active on the server client and I cannot access
    the server via ARD without rebooting the server.
    The help menu in ARD gives an Applescript that supposedly will allow a login from
    the clients login screen but I don't seem to recall how to setup the client so
    that one can access the server if the login screen is up...
    I am running the latest everything...
    In short-- Can I use ARD to connect as different users on a client machine? ( if so how)
    Thanks
    Jerry

    Ok,
    Never mind...
    I enabled postgres in the sharing panel.
    When I log out I get the login screen and I can directly
    login to the postgres account via ARD.
    Thanks
    Jerry

  • Change java 7u51 settings with ARD 10.8.5

    I am trying to change the Java 7u51 security settings using ARD. Also maybe it would be better to edit the whitelist using ARD.
    Thanks

    I also would really like to know.  I have to cahnge this setting on multiple Macs and would really likle to be able to fire out a command in ARD to change the setting, especially since it is a user setting and not a computer setting.  I also tried to manage the setting via Workgroup manager, but it did not seem to take.  It looks good, but when I log in as a students, it is still the wrong setting.

  • Root vs. admin softwareupdate via ARD 2.0

    Hello,
    I've searched here and have not been able to find a similar post. I have an office of about 25 Tiger clients (10.4.6) which get their directory information via LDAP from a Tiger server(10.4.6). If I run softwareupdate from the GUI as an admin account or even from the command line as admin, softwareupdate looks to the local server, which is running the softwareupdate service. If, however, I run softwareupdate as root (which I have to do via ARD, from what I can tell) it checks Apple's servers and wants to download from them. This is a source of frustration because I don't want to have to visit every machine, nor do I prefer to download updates on my admin machine and then push the package out with ARD.
    I'm wondering if using softwareupdate via root is designed to work this way, or if it's a bug. If it's a bug, I'll report it to Apple.
    If this has happened to any of you, please resond with your solution.
    By the way, if I send this command:
    sudo -u admin softwareupdate -i -a
    via ARD as root user, I am prompted for a password, which I'm not sure how to enter. The task just fails.
    Thanks in advance!
    Sean

    It sounds like your group is pushing out Workgroup Management (MCX) from your MacOS X Server box, specifically they are setting the Software Update server. But it sounds like they are setting this as a policy based on groups, rather than on computers. So since root is not in any of the groups managed by the MCX settings, when you run Software Update it is not set, and is defaulting to the built-in address.
    If you really wanted to do it without making changes (if they don't want to put that in for "guest" computers and every other one), then you could use:
    defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://your.softwareupdateserver.com:8088/
    note that that last goes all on one line, and is taken from afp548.com.

  • Using Adobe CS3 app's via ARD?

    Hello,
    I'm wondering if anyone has tried to use the Adobe CS3 design app's via a VPN connection. I have a client who's office will be physically inaccessible for 2 weeks plus, but their computer and internet connection will be functioning normally. I've tried and succeeded in setting up a solid VPN connection, and can remotely control her machine via ARD, screen sharing (10.5.x) and VNC.
    The problem arises when trying to use some of the finer control tools within the app's. Specifically, the pencil tool. I get random starburst type rays across the pasteboard. I've checked to make sure that no specific brush strokes are selected. If someone at the office uses the machine with all the same settings the pencil works fine. I've had intermittent success using the pencil in InDesign, but Illustrator and Photoshop consistently give me bad results.
    Any thought would be much appreciated.
    Thanks,
    Randy

    First: if you have CS3 on your computer and do not have the install disks then you are in violation of the software license.
    Second: Minor bugs in Photoshop and Dreamweaver. PS gets slower and slower the longer you work in it.
    Last question: probably not as the installer puts files in various places.
    The operative answer is the first one. You are on your own conscience.

  • Silently/remotely upgrading clients from 10.6 to 10.7 via ARD/Script

    Hi!
    Apple finally made it possible to upgrade from a major OS (10.6 to 10.7) via an application running on the client, rather than having to boot of a DVD on 100 individual computers.
    Does anyone know of a way to kick this installation procedure off remotely?
    Currently I am remoting onto the machines via ARD and manually clicking the "Install Mac OS X Lion" app, then choosing Next, Next, Next, Install
    it would be nice to be able to schedule this via an ARD task so the installer runs silently without the need to click on the GUI to kick off the installation.
    Any ideas?
    TIA!
    FZ

    I can add it's the same with upgrading to Lion... So I guess they changed some driver code between 10.6.7 and 10.6.8 and its not compatible with my logic board.
    Annoying tbh..

  • Trouble accessing a remote machine via ARD over a VPN

    Hi There,
    I'm having  trouble accessing a remote Workstation via ARD over a VPN.
    The VPN is set up and I can:
    - Control our 10.6 server via ARD remotely
    - Mount volums from the 10.6 server remotely
    - Access another server (we run an accounting server) remotely
    But we can't access a Workstation using ARD.
    I can connect to the Workstation when in the office so assume it's configured for access - I guess I suspect the issue lies with the Firewall on the 10.6 server and/or the Netgear FSV366G Firewall.
    The VPN is setup on the 10.6 server so figure it's something to do with Snow Leopard server?
    I'm just not sure how to narrow things down and fix the issue - although I setup the server I'm not super Unix savvy.
    Any help or pointers in the right direction would be much appreciated.
    Cheers
    Ben

    I can't say for certain what is going wrong in your case but I can confirm it is possible to do an ARD connection i.e. Screen Sharing to a remote user connected via a VPN. The way we do this is to get the user to connect to the VPN server (a Mac OS X Server), then on the Mac OS X Server in Server Admin see what IP address they have been allocated by the VPN server, then tell ARD Admin to connect to that IP address.
    This works fine for me.
    The IP address will be a 'local'  to the ARD and VPN machines IP address it would not be the remote public or private IP addresses.

  • Changed Remote Management Settings -- Lost ARD Control!

    I run a headless server. My remote management settings on the server were set to allow "all users" to control it. I changed it to allow "only these users" and it was set to the current and only user "admin". I immediately lost control of the server in ARD. When I try to re-add it to my list, it accepts "admin" and the password but refuses to allow me to control the server anymiore.
    Needless to say: Help!

    well, that was exciting . . . i was able to login as the superuser (root).
    what's interesting is that when i re-established contact with the server the remote management/options window was open and none of the boxes were checked.
    since it limited control to the admin user immediately upon selecting it, therefore, it stopped allowing me to control it via ARD. not sure how one could set control the admin only on a headless server, but all's well that ends well.

  • Outlook 2013 Programmatic Security Settings via Group Policy

    I am in a domain environment and have deployed Office E3 via Shared Computer Activation on an RDS.
    Outlook functions correctly in online mode.
    When 3rd party software (such as ZetaDocs) attempts to access any Outlook feature (such as sending or address books) a prompt message is displayed - "A program is trying to access e-mail address information stored in Outlook...Allow access
    for...".
    I am able to change the Programmatic security settings to disable the prompt in Outlook by starting it as an Administrator.
    I have tried to do this the 'correct' way using the Office 2013 ADMX GPO templates. The created policy is linked to the OU containing the RDS server.
    gpresult and rsop shows no sign of the policy being implemented after a gpupdate /force.
    Any ideas as to what is going wrong?

    Make sure you have the correct adm:
    http://support.microsoft.com/kb/2426686
    The feature you probably want to disable is the 
    RPC/HTTP Connection Flags and set to None or 0. You'll have to test that out.
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Keychain update via ARD?

    Hello,
    I'd like to run a unix command via ARD to update a password for a user and update the keychain login paassword is this possible?
    It's an AD enviroment and sometimes when the AD password is changed via web or some other means the keychain password doesn't update automatically  I would like to run a command to force this update behind the scenes.
    Thanks in Advance.

    Here's the full data:
    usage: softwareupdate <mode> [<args> ...]
         -l | --list          List all appropriate updates
         -d | --download          Download Only
         -i | --install          Install
              <label> ...     specific updates
              -a | --all          all appropriate updates
              -r | --recommended     only recommended updates
              -u | --url <url> ...     from signed package URLs
         Per-user preferences:
         --ignore <label> ...     Ignore specific updates
         --reset-ignored          Clear all ignored updates
         --schedule (on | off)     Set automatic checking
         -h | --help     Print this help
    So in the Send Unix Command, to see what updates a workstation needed, you'd type:
    softwareupdate -l
    (that's the letter l as in "list")
    and to have the system get all updates, you'd send:
    softwareupdate -i -a
    Set the user as root for all these commands (the Run Command as... dialog)

  • 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    

  • Root vs. admin softwareupdate via ARD

    Hello,
    I've searched here and have not been able to find a similar post. I have an office of about 25 Tiger clients (10.4.6) which get their directory information via LDAP from a Tiger server(10.4.6). If I run softwareupdate from the GUI as an admin account or even from the command line as admin, softwareupdate looks to the local server, which is running the softwareupdate service. If, however, I run softwareupdate as root (which I have to do via ARD, from what I can tell) it checks Apple's servers and wants to download from them. This is a source of frustration because I don't want to have to visit every machine, nor do I prefer to download updates on my admin machine and then push the package out with ARD.
    I'm wondering if using softwareupdate via root is designed to work this way, or if it's a bug. If it's a bug, I'll report it to Apple.
    If this has happened to any of you, please resond with your solution.
    By the way, if I send this command:
    sudo -u admin softwareupdate -i -a
    via ARD as root user, I am prompted for a password, which I'm not sure how to enter. The task just fails.
    Thanks in advance!
    Sean
    PowerBook G4 / 15 / 1.67GB / SD   Mac OS X (10.4.6)  

    It sounds like your group is pushing out Workgroup Management (MCX) from your MacOS X Server box, specifically they are setting the Software Update server. But it sounds like they are setting this as a policy based on groups, rather than on computers. So since root is not in any of the groups managed by the MCX settings, when you run Software Update it is not set, and is defaulting to the built-in address.
    If you really wanted to do it without making changes (if they don't want to put that in for "guest" computers and every other one), then you could use:
    defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://your.softwareupdateserver.com:8088/
    note that that last goes all on one line, and is taken from afp548.com.

  • Cannot deploy vs2010 dacpac via sqlpackage.exe

    Hi Forum,
    I've got a project that must use Visual Studio 2010. I am using a data tier application project for my SQL database. Deployment of the dacpac via Visual Studio 2010 works without any problems, even pre/post scripts works correct.
    I can also manually deploy the dacpac via SSMS wizard. The dac is correctly registered and deployed. Only the pre/post scripts don't work, but if you upgrade right after deployment the scripts are executed.
    Now I want to to deploy the dacpac via sqlpackage.exe. So I can script the deployment of the dacpac that can be executed from some other guys. But I cannot deploy a Visual Studio 2010 compiled dacpac via sqlpackage.exe. I've got always the error message
    that a SQL Server 2012 project cannot be deployed on SQL Server 2008. It's totally curious, because I can deploy the same dacpac file via VS2010 or SSMS. But in Visual Studio 2010 I cannot define the SQL Server version for a data tier project. If I upgrade
    the same data tier project to Visual Studio 2012, set the target version to 2008 and recompile, then I can deploy the new dacpac file via sqlpackage.exe without any errors. But I must use Visual Studio 2010, so I need another workaround for my deployment problem.
    Hope someone knows some solution to that problem. Many thanks in advance!
    regards,
    xxxcoderxxx

    Hi ,
    You post the same question 2 times, please avoid this practice on Forum. Due to the website,
     we could not merge this thread into  following thread.
    Duplicate thread:
    http://social.msdn.microsoft.com/Forums/en-US/b19cd74c-349f-48de-a1b7-cb8d0dcd39da/cannot-deploy-vs2010-dacpac-via-sqlpackageexe?forum=ssdt
    Since the issue regards SQL Server Data tools, we post the question in the SQL Server Data tools forums. It is appropriate and more experts will assist you. Thanks for your understanding.
    In addition, as you post, in VS 2010, we could not set the target SQL Server version for a data tier project. If you use VS 2010 and deploy a higher version dacpac project on lower SQL Server version, the error will occur. I recommend you upgrade the lower
    SQL Server version for deploy dacpac. Or if you just want to move the higher SQL Server database to the lower version. We can use the Generate Scripts wizard of SQL Server Management Studio. For more information, see:
    http://www.mssqltips.com/sqlservertip/2810/how-to-migrate-a-sql-server-database-to-a-lower-version/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • Why is my ipod touch not syncing?

    I have been trying to sync my ipod touch to itunes for hours and I have tried everything that itunes help support has told me to do and it still wont sync.

  • HT3819 How can I transfer a playlist to a scandisk card?

    I work at a tanning salon and I'm trying to transfer some music to our tanning beds. They use a scandisk card- and I cannot figure out how to download my playlists to the scan card

  • How Oracle Project Contract (OKE) is useful for construction business?

    Hello Experts I am new to Oracle Projects family. I am interested to gain knowledge in Oracle Projects particularly in the modules like Project Costing, Billing, Project Management and Project Contracts. I have some specific queries with reference to

  • Invoice value in decimal

    Dear all, facing a SD issue ,sale invoice has been created through VF03 t-code sale done to foriegn customer while taking print out invoice value is showing in decimal i.e instead of Rs.9744.00 its showing Rs.9.744.00 ItemMat    Description          

  • Premiere Conform Tools and Plugins

    Hey everybody, I am trying to develop some tools for professionals that use Premiere. Such things as "export to Nuke" and "check for new versions". Stuff that Hiero and other conform tools have natively, but Premiere is sadly lacking. I am curious fr