MarcBingham

Q: Disable Microsoft Auto Updates via ARD/Terminal

Hi there,

We have rolled out 100 copies of Office 2011 to our 10.6.7 users.

By default they are currently set to automatically check for Updates. I'd like to stop Microsoft Auto Update from running on each machine and then roll out updates (After our own testing) when we see fit using ARD. This will also save us huge amounts of bandwidth.

 

Does anyone know how the terminal commands to stop Microsoft Auto Update from running automatically?

 

I have asked over at Microsoft but I dare say they're not going to be too helpful!

Posted on May 12, 2011 5:01 AM

Close

Q: Disable Microsoft Auto Updates via ARD/Terminal

  • All replies
  • Helpful answers

  • by varjak paw,Solvedanswer

    varjak paw varjak paw May 12, 2011 7:49 AM in response to MarcBingham
    Level 10 (169,890 points)
    May 12, 2011 7:49 AM in response to MarcBingham

    You could use the defaults command in the Send Unix Command to push out a change to the com.microsoft.autoupdate2 domain, which would alter the preference to manual. I don't have the exact syntax since I've never had to do this, but if you look up the man page for the defaults command, then use the following command to read that preference file:

     

    defaults read com.microsoft.autoupdate2

     

    you can probably figure it out. It's probably going to be something like

     

    defaults write com.microsoft.autoupdate2 HowToCheck Manual

     

    but I may not have the syntax stated correctly. You can test it in Terminal on a test machine to work out the syntax, then use ARD to push the command to your clients.

     

    Regards.

  • by MarcBingham,

    MarcBingham MarcBingham May 13, 2011 1:00 AM in response to varjak paw
    Level 1 (20 points)
    May 13, 2011 1:00 AM in response to varjak paw

    Your syntax was perfect

    Thanks for this. I also learnt something new there. I didn't know the "read" command actually presented the prefs file in a readable state. Its actually really helpfull!

    I'll get this rolled out via ARD today.

     

    Many thanks again Dave,

  • by varjak paw,

    varjak paw varjak paw May 13, 2011 7:35 AM in response to MarcBingham
    Level 10 (169,890 points)
    May 13, 2011 7:35 AM in response to MarcBingham

    Glad that worked for you; it was just a guess as to syntax.

     

    Cheers.

  • by Fred Turner,

    Fred Turner Fred Turner Dec 30, 2011 2:41 PM in response to varjak paw
    Level 1 (85 points)
    Dec 30, 2011 2:41 PM in response to varjak paw

    Hey Guys--

     

    Here's an add-on question to the OP: Anybody have a clue how to do this while the users are logged out, or if there happen to be multiple users on a particular machine? The command given above will work for the user that's currently logged in, but this preference file/setting is not global. IOW, it lives in ~/Library/Preferences for each user, rather than the machine-wide /Library/Preferences. I'm wondering if there's a way to have ARD send the defaults command to each user directory it finds in /Users. Any ideas?

     

    Thx,

    Fred

  • by chicster,

    chicster chicster Dec 30, 2011 5:30 PM in response to Fred Turner
    Level 2 (204 points)
    Mac OS X
    Dec 30, 2011 5:30 PM in response to Fred Turner

    Since you are going to do the updates manually, I think you could just delete the autoupdate program at

    /Library/Application Support/Microsoft/MAU2.0  using a unix command with ARD.  I did that back when I had a setup for some network users that made them get a "you don't have authority to run ..." message when they opened word, and there didn't seem to be a negative impact.  Users can still check manually.  I think.

     

    Chic

  • by TeenTitan,

    TeenTitan TeenTitan Jan 12, 2012 8:27 AM in response to Fred Turner
    Level 4 (2,531 points)
    Mac OS X
    Jan 12, 2012 8:27 AM in response to Fred Turner

    Hi Fred,

     

    Sending the command to all user accounts may be useful; but what happens if you then add new users? And if your pushing htis command out, I'm going to assume your probable going to want to do this with other settings in the future.

     

    Instead I would suggest using MCX to tell the computer to apply this setting to all accounts on the computer. The nice thing about using MCX, is that it will apply to accounts that haven't even been created. You can use Directory Utility to modify the local MCX of a computer. (Directory Utility is a free download from Apple's website. the download is called Server Admin Tools. )

    One you create a local MCX setting, you can use ARD to pusht hat setting out to all your computers.

    If you have many computers, ushally you would setup a Mac OS X Server to run an Open Directory. That open directory could then be used to push out MCX settings to all the client comptuers on your network.

  • by Fred Turner,

    Fred Turner Fred Turner Jan 12, 2012 12:31 PM in response to TeenTitan
    Level 1 (85 points)
    Jan 12, 2012 12:31 PM in response to TeenTitan

    Good idea, TeenTitan! I already have all of these machines in a Mac OS X Server/OD setup, so it was a pretty simple matter of importing my own prefs file into WGM under [Group] -> Preferences -> Details. Testing shows that the auto-update setting returns to "Manual" after logout and log back in, even if the user has changed it to automatic. Thanks a bunch!

     

    MarcBingham, you should mark Titan's post as Helpful, if you get a moment.

     

    Thx,

    Fred

  • by John Lockwood,

    John Lockwood John Lockwood Apr 23, 2014 9:42 AM in response to TeenTitan
    Level 6 (9,411 points)
    Servers Enterprise
    Apr 23, 2014 9:42 AM in response to TeenTitan

    As an update to this thread.

     

    MCX would indeed be a way to do this for users, however MCX aka. Managed Preferences is deprecated in Mavericks and you should instead do this via Profile Manager. There is also another method you could use, if you put this preference in the User Template folder then any user account created afterwards will take a copy of the plist file and use it. The following command would create a plist in the User Template folder with this setting

     

    sudo defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/com.microsoft.autoupdate2 HowToCheck Manual

     

    You could also add this to a DeployStudio (or similar) imaging work flow by adding the following to a generic script step

     

    /usr/bin/defaults write /System/Library/User\ Template/English.lproj/Library/Preferences/com.microsoft.autoupdate2 HowToCheck Manual

     

    By the way, my thanks to varjak for the original solution.

  • by jamauai,

    jamauai jamauai Apr 30, 2014 2:31 AM in response to John Lockwood
    Level 1 (0 points)
    Apr 30, 2014 2:31 AM in response to John Lockwood

    Thanks I plan to use this on my next deployment.

  • by jnojr,

    jnojr jnojr Mar 4, 2015 2:36 PM in response to varjak paw
    Level 1 (15 points)
    Mac OS X
    Mar 4, 2015 2:36 PM in response to varjak paw

    The only file called com.microsoft.autoupdate2.plist is in root's ~/Library/Preferences/ and the only entry it contains is for Silverlight.

     

    Could someone post more details about where they're finding this plist?