/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: anonymous_9363 9 years ago
Red Belt
0
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.
Posted by: SMal.tmcc 9 years ago
Red Belt
0
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)


https://www.autoitscript.com/site/autoit/
https://www.autoitscript.com/autoit3/docs/functions/RunWait.htm




Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ