03/18/2015 2969 views

I need a postinstall task that will allow me to join the PC to a domain without showing my admin credentials in the Parameters field within KACE.  The postinstall task that is provided with the K2000 works fine, but I need to be able to hide those credentials.  Any ideas on how I might can accomplish that?
1 Comment   [ + ] Show comment


  • I took the existing join_domain.vbs script and modified it slightly to fit my needs (I manually inserted the credentials into the vbs script). After doing that, I took the iexpress.exe and wrapped this file into a .exe file. The only issue is that when I put this as a postinstall task, it will not run. I can manually click on this file after the fact and it will add it to the domain. What am I doing wrong? How do I call an .exe file to run?

All Answers

Build a command file or VBS which performs the task and then use one of the quadzillion BAT/CMD/VBS ==> EXE tools to turn it into an executable. Make sure you document the process and lodge the source and tool in your Configuration Management or Source Control app.
Answered 03/19/2015 by: VBScab
Red Belt

I agree with VBScab to use a program to compile it..  A lot of the Kace techs use AutoIT to create exe's.  I have taken up this progam and find very useful for this purpose.  I create simple exe's to call existing apps with input variables included (saves reinventing the wheel).  It complies this so no one can read it.  I still use the join_domain.vbs that Kace provided with the K2000 but use a exe to call it with the needed variables.  You zip up the vbs and the exe and run  the exe as a post task

RunWait("c:\windows\system32\cscript.exe join_domain.vbs domain user password","",@SW_HIDE)


Answered 03/19/2015 by: SMal.tmcc
Red Belt