r/PowerShell • • Aug 24 '26

Question PowerShell ISE slow start-up & modules

In our office we have a server we use when working remotely for certain tasks.
I've noticed when using the ISE on that box it takes a few minutes to fully load

Looking at other threads on this issue Ive checked the available modules & both C:\Program Files\WindowsPowerShell\Modules & C:\Windows\system32\WindowsPowerShell\v1.0\Modules contain over 100 files each. the bulk of which seems to be VMware stuff.

While I don't use these modules myself I don't know if any of my colleagues or other teams still do.

Is there anything I can do within my profile to tell PowerShell to ignore the VMware modules?

3 Upvotes

23 comments sorted by

View all comments

Show parent comment

3

u/purplemonkeymad Aug 24 '26

You can create shortcuts to scripts by creating a shortcut to powershell and giving it the path, ie

Target: powershell.exe
Arguments: -File c:\scripts\myscript.ps1

I'll also sometimes use Show-Command to give you a little ui at the same time for those that don't like typing into the shell window (assuming you have used a param block for your arguments:)

Target: powershell.exe
Arguments: -Command "Show-command c:\scripts\myscript.ps1 -Passthrough | iex"

You might have to use an argument -ExecutionPolicy if running scripts is disabled.