PostInstall task: Joining a PC to domain without showing credentials
Hi,
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? - JCRAWFORD 9 years ago
Answers (2)
Please log in to answer
Posted by:
anonymous_9363
9 years ago
Posted by:
SMal.tmcc
9 years ago
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
https://www.autoitscript.com/site/autoit/
https://www.autoitscript.com/autoit3/docs/functions/RunWait.htm
RunWait("c:\windows\system32\cscript.exe join_domain.vbs domain user password","",@SW_HIDE)
https://www.autoitscript.com/site/autoit/
https://www.autoitscript.com/autoit3/docs/functions/RunWait.htm