Error in IQService: The environment block used to start a process cannot be longer than 65535 bytes. Your environment block is xxxxxx bytes long

Hi all,

Running into the following error when trying to run scripts to create mailboxes in the IQ service:

The environment block used to start a process cannot be longer than 65535 bytes. Your environment block is xxxxxx bytes long. Remove some environment variables and try again.

It seems that to run some of the powershell scripts we have in the IQ service, the IQ service passes the parameters as environment variables. We have removed some more of the unnecessary environment variables, but it is making a minimal difference in our environment block.

Has anyone seen this issue and have any workarounds?

Thanks!

Hi Daniel,

Welcome to Developer Community. Looking at the error it seems to looks like a .NET limitation. I don’t have a good solution right now other than if there is some variables that can be reduced.

Could you please try to run the PowerShell standalone and see if it gets executed ?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.