Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-3344: How to place an URL on the Mac Desktop via GP.

Mac & PC Management Service ,  

12 April,16 at 11:47 AM

Applies to: All versions of Centrify DirectControl for Mac OS X.


Can internet links be placed on the Desktop via GP?


The following Applescript can be used to create an internet link on the user's Desktop:
  • set theURL to ""
  • set theNAME to "Centrify"
  • tell application "Finder"
  •    make new internet location file at desktop to theURL with properties {name:theNAME}
  • end tell
This can then be placed within a login script to run at login time. An example script has been attached to this KB to demonstrate the usage.

  • The scripting hints provided in this KB are provided as a proof-of-concept only. 
  • Centrify Support does not cover custom-scripting - please contact Centrify Professional Services for further assistance with scripts.
  1. Download the attached login script and open it with a UNIX capable text editor.
    • (Notepad++ is recommended on Windows systems, do not use notepad.exe)
  2. Change the LINK_URL and LINK_TITLE variables to the desired link and icon title. 
    • Make sure to keep them wrapped in the single quotes.
  3. Save the script to the SYSVOL folder on the AD server:
    • \\ [domain] \SYSVOL\ [domain] \scripts\ 
    • User-added image
  4. Set up the Login Script GP at: 
    • User Configuration / Centrify Settings / Mac OS X Settings / Scripts / "Specify multiple login scripts"
      • Enter the filename of the script only:
      • The "Parameters" field can be left blank.
    • User-added image
  5. To allow the GP to take affect immediately, go to the Mac as the AD user, open up Terminal and run the command:
    • adgpupdate
  6. Logout and log back in as an AD user, the URL icon will appear on the Desktop

To place an internet link on the user's Dock instead, please see:

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.