Home Forums Software InstaDMG Loginhook

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #380427
    bango
    Participant

    hi
    i would like to use a loginhook that runs when the local admin logs in the first time (after the image has been deployed). the reason why i would want to use a loginhook is because in the .sh script i have has a line to call oascript (applescipt) to prompt the tech to assign a computer name, before the machine is bound to AD. if i use this .sh file as a firstboot script it fails to prompt the tech to assign a computer name because in the Console log is says that “untrusted apps are not allowed to connect to or launch windows server before login”.
    my question is – how do i go about setting up this loginhook (that only runs once). i understand i need to put it in the loginwindow.plist – with the key called LoginHook. i just dont know how i would implement this in the image build process?
    i dont want to place the .sh file somewhere on the image or or have run it from a network share – stopping the tech from viewing the “code”
    any ideas would be great.
    thanks

    #380428
    Allister Banks
    Participant

    Hey bango,

    Managed preferences, either from a centralized directory or LocalMCX, can be set to cause the script to run reliably(=in a fashion supported by Apple). Other than that, there’s projects like xhooks or ihook for having things run during login.
    If things don’t have to be so dynamic, you can feed a list of computers to deploystudio, and it will automate the naming and binding process…
    If I’m not mistaken LaunchAgents can run during loginwindow, though. I don’t have a clear-cut answer for exactly what you’re hoping to achieve, but hope that gets you started.

    Allister

    #380432
    dead2sin
    Participant

    [QUOTE][u]Quote by: bango[/u][p]hi
    i would like to use a loginhook that runs when the local admin logs in the first time (after the image has been deployed). the reason why i would want to use a loginhook is because in the .sh script i have has a line to call oascript (applescipt) to prompt the tech to assign a computer name, before the machine is bound to AD. if i use this .sh file as a firstboot script it fails to prompt the tech to assign a computer name because in the Console log is says that “untrusted apps are not allowed to connect to or launch windows server before login”.
    my question is – how do i go about setting up this loginhook (that only runs once). i understand i need to put it in the loginwindow.plist – with the key called LoginHook. i just dont know how i would implement this in the image build process?
    i dont want to place the .sh file somewhere on the image or or have run it from a network share – stopping the tech from viewing the “code”
    any ideas would be great.
    thanks[/p][/QUOTE]

    Just curious, what are you deploying your images with?

    Nate

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed