Run powershell with specific powershell modules loaded
Posted on 2013-02-06
I'd like to run powershell-commands to vmware, AD etc.
Now when I run a powershell ps1 (right mouse "run with powershell" it hasn't the modules loaded.
I guess that's something to do with profiles? How does it work + how can I do this automatically by system startup (load + connect to vcenter) so preventing slow down startup of a script (if it needs to load the modules each time I run a script it takes seconds before it runs).
Thanks for your advice.