I use PowerShell ISE on a shared remote server, and it takes roughly 90–120 seconds to finish loading. The regular PowerShell console is also noticeably slow. The module directories under C:Program FilesWindowsPowerShellModules and C:WindowsSystem32WindowsPowerShellv1.0Modules contain more than 100 files each, with many VMware-related modules. I do not use those modules, although other teams might. Is there a way to prevent PowerShell or the ISE from discovering or loading the VMware modules from my user profile without removing them for everyone?
4 Answers
You can customize $env:PSModulePath in your own profile so your sessions do not search the VMware module directories. For example, save the existing value, split it on ';', filter out only the VMware-specific paths, and join the remaining paths again. However, this will only affect processes started with that profile, and it may prevent scripts or colleagues' tools from finding those modules. Test it in a separate session before making it permanent.
Check whether several older versions of the same modules are installed. Removing obsolete versions can reduce the amount of module discovery work, but be careful on a shared server and confirm that no other scripts depend on them. Also check whether a profile or a file-sync service is scanning or uploading a user-scoped module folder.
Since the standard console also takes 20–30 seconds to become responsive, the ISE command pane may not be the only cause. Check the PowerShell profile for explicit Import-Module commands, look for duplicate module versions, and use timing around profile commands to identify what is taking time. The ISE is also a legacy editor and is no longer receiving new feature development; Visual Studio Code with the PowerShell extension is the modern replacement.
PowerShell normally does not load every module just because it exists in a module directory. Modules are usually imported on demand, but the ISE's command discovery and tab-completion features can enumerate a large module collection and make startup much slower. Try disabling the command list pane on the right side of the ISE and see whether that makes a noticeable difference.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures