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  >
article

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

Centrify Identity Service, Mac Edition ,  

12 April,16 at 11:47 AM

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

Question:

Can internet links be placed on the Desktop via GP?


Answer:

The following Applescript can be used to create an internet link on the user's Desktop:
  • set theURL to "http://www.centrify.com"
  • 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.

Notes:
  • 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: create_url_desktop.sh
      • 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:
Attachments:

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