

#LANDESK AGENT FOR MAC INSTALL INSTALL#
Select Chose the domain to join or not join a domainĬase GUICtrlRead($optCSN) = $GUI_CHECKED Join CSN domainįileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf DOMAIN=CSN")įileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf NOWG=")įileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf WG= ")Ĭase GUICtrlRead($optSTUDENT) = $GUI_CHECKED Join STUDENT domainįileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf DOMAIN=STUDENT")Ĭase GUICtrlRead($optNONE) = $GUI_CHECKED Join WORKGROUP and no domainįileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf NOWG= ")įileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf WG=")Ĭase GUICtrlRead($optStaff) = $GUI_CHECKED Install the Staff faculty agentįileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf AGENT=instfacst.bat")Ĭase GUICtrlRead($optDeepfreeze) = $GUI_CHECKED Install the Lab Classroom agentįileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf AGENT=instlabcl.bat") If GUICtrlRead($computername) = "" Then if blank computer name, use the LANDesk inventory computer name for the name.įileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf COMPUTERNAME=%Computer - Device Name%")Įlse else use the user input for the computer nameįileWriteLine($f, "tokreplw c:\sysprep\sysprep.inf COMPUTERNAME=" & GUICtrlRead($computername)) While 1 infinite loop that waits for the GUI to receive a messageĬase $msg = $okbutton if the Ok button is pressed, check the options that the user selected

$f = FileOpen("x:\LDClient\insertname.bat", 2) Create the insertname.bat file $okbutton = GUICtrlCreateButton("OK", 100, 270, 60) Create the OK Show the GUI $optRural = GUICtrlCreateRadio("Rural Site", 40, 230, 150, 20) Create the radio button to install the Rural Site agent $optLaptop = GUICtrlCreateRadio("Laptop/Roaming", 40, 210, 150, 20) Create the radio button to install the Roaming Laptop agent $optDeepfreeze = GUICtrlCreateRadio("Deep Freeze Required", 40, 190, 170, 20) Create the radio button to install the Lab Classroom agent GUICtrlSetState(-1, $GUI_CHECKED) Set the Faculty Staff agent radio button as checked by default $optStaff = GUICtrlCreateRadio("Standard Staff/Faculty", 40, 170, 150, 20) Create the radio button to install the Faculty Staff agent GUICtrlCreateGroup("LANDesk Agent", 30, 150, 190, 110) Create the agent "group" that surrounds the radio buttons

GUICtrlCreateGroup("", -99, -99, 1, 1) close group $optNONE = GUICtrlCreateRadio("Do not join a domain", 40, 120, 150, 20) Create the radio button to not join a domain $optSTUDENT = GUICtrlCreateRadio("STUDENT", 40, 100, 100, 20) Create the radio button to join the STUDENT domain GUICtrlSetState(-1, $GUI_CHECKED) Set the CSN radio button as checked by default $optCSN = GUICtrlCreateRadio("CSN", 40, 80, 100, 20) Create the radio button to join the CSN domain GUICtrlCreateGroup("Domain to join", 30, 60, 190, 90) Create the join domain "group" that surrounds the radio buttons GUICtrlSetLimit(-1, 15) Limit the computer name to 15 characters $computername = GUICtrlCreateInput("", 30, 30, 190, 20) Create the textbox GUICtrlCreateLabel("Enter the computer name:", 30, 10) Create a label GUICreate("PC Rename", 250, 310) Create the GUI Window

The AutoIt script follows the exact same logic, but expands the idea to add more options. Re-read my previous article on how I did the VBScript. I won’t go through line by line like I did for the VBScript you’ll just have to visit the AutoIt documentation website to look up some of the functions. So, I upgraded our OSD task to prompt the technician to select which domain to join (or none), and which LANDesk agent to install. The LANDesk agent gets installed during the GUIRunOnce section of Sysprep. We have four LANDesk agent configurations: one for labs and classrooms, one for office computers, one for laptops, and one for computers that don’t reside on our network. We have a parent domain, and a child domain for students. I have since then upgraded to an AutoIt script that gives us more options.įirst, let me give a brief explanation of our environment. My previous article about injecting the computer name into the Sysprep.inf file used a VBScript. These OSD tasks can be anything really, but that is a story for another article. Here at CSN, we PXE boot our faculty/staff computers into LANDesk’s specially configured WinPE, which launches a GUI menu of OSD tasks.
#LANDESK AGENT FOR MAC INSTALL HOW TO#
Late last year I wrote an article on how to rename computers before an image is applied during LANDesk’s OSD process (read this article first if you haven’t already).
