Question about integrated environment

Hello,

I’ve a question about Integrated Environment. Sorry if it was already asked before.

For best practices, we need to favor Non-Integrated Environments as it doesn’t affect PSU service.

But, is the PowerShell 7 and PowerShell 5.1, shipped with PSU, considered as Integrated environment too ? (Like the named “Integrated”)

Or, do you recommend to use the other installed PowerShell, the one that is in the physical / VM server ?

Thank you :slight_smile:

Product: PowerShell Universal
Version: 5.5.2
1 Like

PS 7 and PS 5.1 that ship with PSU are not the same as the integrated environment. While they are integrated into the install media, they run in a separate process (PowerShellUniversal.Host.exe) and do not load all their assemblies into the main PSU server.

The Integrated environment loads all assemblies into the main PSU server and can cause some cross contamination between assembly versions and static values, especially for modules like PowerCLI, Graph and Exchange Online.

2 Likes

Thank you for the answer :slightly_smiling_face: