Home Forums OS X Server and Client Discussion Questions and Answers Managed priter script for 10.5.7 mobile accounts

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #376446
    striderida1
    Participant

    I was able to create a simple applescript that will detect the user that is logged on and add them to the lpadmin group in 10.5.7. After this script is ran the + and – icons in the printing preference menu will become available and users will then be able to add/delete printers from the local machine.

    set whoAmi to do shell script (“whoami”)
    set whoAmiFinal to result
    do shell script (“dseditgroup -o edit -n /Local/Default -q -u ADMINNAME -a ” & whoAmiFinal & ” -t user lpadmin”) user name “ADMINNAME” password “PASSWORD” with administrator privileges

    Hope this helps.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed