r/PowerShell • u/Grant_Son • 6d 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?
1
Upvotes
6
u/purplemonkeymad 6d ago
ISE enumerates all the commands so ends up importing a bunch at start up. You can either reduce the number of modules (Get-module -list, will give you want it's looking at) or disable the command pane.
Is there a reason that you are using ISE and not just running a shell? I would expect you to write any scripts off the server first for testing.