Thanks, my console is already hidden when I double click on the script it appears without any dos window in the backend, it only pops up when I hit the trigger button which has the psexe in the function.can you please help with CreateProcessAsUser I would wish to learn how to quarry dll functions and under stand it's usage.