Terminal command to lock and unlock the dock?

Hello,
I manage hundreds of iMacs running Yosemite at a school site.  I use parental controls with the lock dock feature turned on.  I would like to periodically unlock the dock to customize it with new icons, but have not found a terminal command that works, or a streamlined process that is time efficient.
So far I have been individually unlocking the dock in parent controls on each machine, restarting, editing the dock, then re-locking it parental controls, then restarting.  This takes 5-10 minutes per machine). 
I also tried this command but it didn't work.
defaults write com.apple.dock contents-immutable -bool true; killall Dock;
I also tried cloning the parental controls with an exported plist file to all the machines using ARD, which works for all the parental control settings EXCEPT for the lock dock feature.
Any ideas?
Cheers,
Crystal

Sorry this is probably too late for you, but it may help others seeking this answer, I just had this problem [Mac OS x Yosemite 10.10.2] and found that the following worked for me:
1. Use Terminal to LOCK the Dock by C&P or typing in:
defaults write com.apple.dock contents-immutable -bool true
Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
and then Log-In again.
2. Use Terminal to UNLOCK the Dock by C&P or typing in:
defaults write com.apple.dock contents-immutable -bool false
Then use your preferred method to Log-Out [e.g. Key Combo ⇧⌘Q or  [Top Left Menu] then select Log Out “name”]
and then Log-In again.
NB. You will be solely responsible for your actions making changes to the Operating System.

Similar Messages

  • Hi how to handel the lock and unlock the table

    Hi,
    i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and  DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
    regards,
    Hari.

    Hi,
    i assume it's in table JEST
    so select:
      SELECT        * FROM  JEST
               WHERE  OBJNR  =  aufk-OBJNR
                AND   STAT   IN S_STATI
    Andreas

  • Need to Lock and unlock the fn key freely

    I just today purchased the HP g72-b66us notebook.  An MMO that I play uses the f # keys at the top of the keyboard for integral aspects of the game on a regular basis.  Thus far I have had to hold the fn key down and that hampers gameplay ability drasticly.  I'd like to be able to lock and unlock the fn key the same way one uses the number lock or caps lock.  Please advise.

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • FM to Lock and Unlock the Tcode CJ02

    Hi,
    I want to lock and unlock the Tcode CJ02, my code is as below.When I am executing the Report, I am able to create the Settlement Rule in first Row but I am getting an Error Mesage saying " Subproject 4-0123-02-01-01-10-01 is currently processed by USER" though there is no other session open under the user name when trying to create settlement rule in second row in the loop. Wbs element that ima using for creation of settlement rules is "4-0123-02-01-01-10-01".
    loop at it_src into wa_src.
    Lock the Tcode 'CJ02'.
    Perform BDC Recording to Create Settlement Rule.
    Unlock the Tcode 'CJ02'.
    endloop.
    Regards,
    Deepthi.

    Hi, you can block the Subproject with Lock Object, you can create this under SE11
    after you have created this, use these FM for Enqueue/Dequeue,
      call function 'ENQUEUE_EZ_ODAPROF_PO'
           exporting
                mode_ztma_odaprof_po = 'E'
                mandt                = sy-mandt
                ebeln                = cod_oda
                ebelp                = cod_pos
           exceptions
                foreign_lock         = 1
                system_failure       = 2
                others               = 3.
      call function 'DEQUEUE_EZ_ODAPROF_PO'
       exporting
         mode_ztma_odaprof_po       = 'E'
         mandt                      = sy-mandt
         ebeln                      = cod_oda
         ebelp                      = cod_pos

  • Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even thoug it

    Apart from the lock button problem in iphone 5 the display brightness suddenly goes blank and becomes normal after locking and unlocking the iphone. The Apple service centre in India is denying to service the iphone as it was purchase in USA even though the iphone is in warranty.

    iPhones do not have an international warranty.  Warranty is valid only for the country of purchase.  This is most likely because different countries require different iPhone models.  Not reasonable to expect all countries to maintain stock for all models.

  • TS3274 How do I lock and unlock the vertical/horizontal screen positions?

    How do I lock and unlock the vertical/horizontal screen positions?

    Use the Side Switch or Rotation Lock in Control Center.

  • Can I use my fingerprint to lock and unlock the iPhone?

    Will it be possiable for iphone users to use their fingerprint to either lock and unlock thier devises?

    No

  • How do i use the "Alt+Ctrl+;" keyboard shortcut to Lock and Unlock Guides in Adobe Illustrator?

    Hello,
    I've been trying to lock my guides in Illustrator CS5 with the default keyboard shortcut "Alt+Ctrl+;", but with no result.
    When i edit this shortcut via the 'Edit/Keyboard Shortcuts...' menu, and type in the same keystroke combination for that command - so again "Alt+Ctrl+;" for "Lock Guides' - the shortcut changes from "Alt+Ctrl+;" into "Alt+Ctrl+."
    This new "Alt+Ctrl+." shortcut is usable. Now the same 3 different keystrokes tabbed at the same time do lock and unlock the guides, but i'm left wondering why it is that i can't use the "Alt+Ctrl+;" combination.
    There now also seems to be no way around changing the new combination into the old one again.
    I hope someone can help.
    Thanks in advance,
    Johan

    Thanks Jacob. I can't seem to find a solution to my problem within the site you linked, but i'm still happy with it. Seems to be a great resource for answers.

  • Statement for Lock and Unlock an Oracle user (Urgent)

    Hi DBAs.
    I just want to know about the statement used for lock and unlock the Oracle user thru sysdba suer.
    Thanks
    Hassan

    Hey,
    SQL> alter user <USERNAME> account lock;
    and
    SQL> alter user <USERNAME> account unlock;
    Cheers,
    Marcello M.
    Sorry Justin, same answer........
    Message was edited by:
    Marcello M.

  • Is it possible to lock and unlock a transaction?

    Hi SDN,
    Is it possible to lock and unlock a standard transaction( for eg VA02 ) through my program?( i am creating a customized version of standard transaction ) I want to lock the transaction for my user-id and then i will update the values in that transaction and finally i will unlock it.
    I got the FM for locking at the database level.is there is any FM to lock and unlock the transaction?

    Hi,
    It may not be the best way, but maybe you could use the functionality behind transaction code SM01. Here you can lock/unlock the transaction code. If you look at the program, all it is really doing is updating table TSTC field CINFO. CINFO = 80 when unlocked, CINFO = A0 when locked. You could just update the field accordingly and then call this function module right after.
    * For locking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        LOCK = 'X'.
    * For unlocking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        UNLOCK = 'X'.
    Regards,
    Ferry Lianto

  • Keyboard lock and unlock for 8330

    I need a way to lock and unlock the keyboard.  I have searched a number of websites for an answer to my dilema and it seems several methods are mentioned but none work for me.  I need to lock the keyboard when phone is in my pocket.  Many thanks to anyone who can help.

    Well, according to your device manual, this is the procedure:
    Lock the keyboard
    If you do not set a BlackBerry® device password, you can lock your keyboard to avoid making calls and pressing keys accidentally.
    On the Home screen or in the application list, click Keyboard Lock.
    To unlock the keyboard, press the asterisk (*) key and the Send key.
    You can look further into your manual here:
    http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&docType=kc&externalId=http--docsbl...
    Good luck.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Lock and Unlock a table:AFVU

    Hi Folks.
    I want to modify a standard table (AFVU )  with new user dates from User.For this,First I need to lock and unlock the table.
    When I am trying for the standard table lock object (EAFVU) ,it was not there in the system.
    Is there any way to find out the lock object for a particular table?
    How to proceed for this?
    Any Pointers are much helpful.

    Hi,
    Go to SE11 and display your table - do a where used list and select lock objects.
    I really hope when you say you are modifying a standard table you are only updating custom appends on that table, and not directly updating standard SAP fields...
    Gareth.

  • Lock and Unlock Time Stamp

    Hi,
    Is there a way to get the time stamp when we lock and unlock the entities. And also the User name who performed the lock and unlock task?
    Rgds
    Abhi

    Hi Lye and Elvira,
    I am not logged on, but fairly certain that calling FM BAPI_USER_GET_DETAIL will also deliver the lock status / reason and user existence check etc, which means that the program can react appropriately to the UFLAG lock and the reason for it (if coded to do so). It would also spare the select on USR02 which might change or even be blocked.
    A bigger problem I see with preventing a user from doing something from a certain point in time onwards using this lock-approach, is that the user might already be logged on!
    @ Elvira Knight and ELVIRA KNIGHT regarding points: You have 2 SDN ID's now. You need to logon as the ID which created the thread (Elvira Knight originally asked the question) either by using the P- or S-number from the registration or the email address (you might need to temporarily change ELVIRA KNIGHT's email address to do that). Then you will be able to assign points for the thread which you started as Elvira Knight.
    Theoretically I could add the points for you, but I prefer not to interfer in the decisions and points of SDN members (it is a free world  - unless there is points collaboration...). The future of the points-system is indeed also hanging in a bit of a balance because of that reason. You can email me via the address in my business card if you need some help.
    Cheers,
    Julius

  • "The drive where windows is installed is locked. Unlock the drive and try again."

    Have an Envy M6-K010DX notebook. Due to an internet problem while upgrading from Win 8 to 8.1, the PC doesn't properly boot and Windows Explorer won't load. Decided to 'Refresh' the OS and went to the F11 restore utilities. When I go to the refresh utility and follow the prompts I reach a message that says, "The drive where windows is installed is locked. Unlock the drive and try again." I've searched support for unlocking instructions and aside from some bootrec commands (that didn't work - probably because I don't have a Win 8 disk) not much is available.
    The only access I have for running commands is via the Task Manager and F11 command prompt. What is this 'locked' drive, anyway? Does anyone have any information on this?
    This question was solved.
    View Solution.

    Its hard to say if it the data is accessable or if the file system is corrupted or not.
    Recuva is a free utility to recover files that are missing due to deleting or reformatting.
    Not all of the data will be recoverable now but perhaps most of it is.
    If Recuva cannot detect anything, I doubt a paid program will do any better.
    You can plug the old drive into a sata port on a desktop PC or you can purchase a usb adapter to use on another laptop.
    If you go with a USB adapter, get one thats usb 3.O if possible.
    Example: for notebook drives...http://www.newegg.com/Product/Product.aspx?Item=N82E16812161005

  • Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enc

    Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enclosing folders." What on earth does it mean? How can I stop this message from appearing?

    See here:
    I cannot save recent images.

Maybe you are looking for

  • Don't want to view previous items in month view

    Hi guys, I don't use iCal for much, but I'm trying to make a simple calendar of events. There are several events, and they last for a month and a half or so each. I've created the event and I'm having it repeat until the specified date. Let's say the

  • Parse an XML String

    hi lets say i got an XML String which looks like this.. String xmlstring = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><GET_REALIZED_GAIN_LOSS_DETAIL_RESPONSE xsi:schemaLocation=\"http://www.statementone.com/webservice/schemas D:\\PMTSchema.xsd\" xmln

  • Jndi lookup of of object that has been bound remotely

    I want to register in weblogic server jndi tree some remote objects. A one standalone application binds these object in server jndi. Another standalone app try to lookup and executes some methods - everything works ok. The problem is : applications w

  • Setup script document for Sourcing implementation

    Hi, Please can one share a setup script document for Sourcing implementation ? Regards.

  • How can I change my security preferences so I can download Handbrake?

    Hello. I have a Mac 10.8.5 version. I am a web developer student and I need to download a program called Handbrake, but according to my computer specifications, I can't download it until I change my security preferences. How can I change my security