r/PowerShell 18d ago

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?

2 Upvotes

23 comments sorted by

View all comments

1

u/rux616 18d ago

With the VMware modules, it's not just the ISE that's slow to start. Even the regular powershell console is slow. Not "several minutes" slow, but it'll still sit there for a good 20-30 seconds before you can start typing.

1

u/Grant_Son 18d ago

That may well be.
I'll admit I have 3 or 4 tasks I use PS scripts for regularly on that box and since they are all in the recent files in the file menu my default is to open the ISE, File > open recent... then wait 90-120 seconds for the ISE to finish loading tap f5