- This topic has 2 replies, 3 voices, and was last updated 14 years, 2 months ago by
dead2sin.
-
AuthorPosts
-
February 9, 2011 at 4:55 am #380427
bango
Participanthi
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.
thanksFebruary 9, 2011 at 1:47 pm #380428Allister Banks
ParticipantHey 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
February 10, 2011 at 2:38 am #380432dead2sin
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
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed