none
How I could Preload a powershell.exe in memory and use it when needed ? RRS feed

  • General discussion

  • Hello,

    I'm searching how I could improve my PowerShell GUI load time. For that, I'm thinking about launch a empty powershell.exe at the startup, for having it in memory.

    The main idea, is when I need my GUI, I will use this preload powershell.exe to execute my GUI script.

    Is there possible to do that ?

    • Keep a powershell.exe in the process
    • Send a script to this powershell.exe


    Thursday, December 22, 2016 3:09 PM

All replies

  • How long does it need to start the console? 

    Grüße - Best regards

    PS:> (79,108,97,102|%{[char]$_})-join''

    Thursday, December 22, 2016 3:49 PM
  • The biggest cause of slow load times with a form is what is in the form load event.  Until the load event completes the form will not display.

    To have the form display before it is loaded use the form "Activated" event which occurs after the form is displayed.


    \_(ツ)_/

    Thursday, December 22, 2016 9:48 PM