Environment
NetIQ Identity Manager 4.5
NetIQ Identity Manager Driver - Multi-Domain Active Directory
Situation
Customer has several different domains connected with the Multi-Domain Active Directory driver. They are hitting a limit on the number of PowerShell connections of 30 (the default value). This causes an error where the connections are refused and the driver does not run.
Resolution
The driver establishes only a single WS Man Session for each of the domain. If the same account is being used across multiple domains then the number of sessions would not be more than the number of configured domains. If using Exchange you will see a second one listed but it is within the first session so still only one is used.
However, if that same account is being used to run other PowerShell sessions or if you are connecting to more that 30 domains, you will may hit the limit.
To see the number of sessions you can use the command
PS C:\> Get-PSSession -ComputerName localhost
PS C:\> Get-PSSession -ComputerName localhost
Refer to Microsoft documentation to increase the limit.
Here are some links, but always verify with current Microsoft articles.
This link explains how to change and see the current settings. See example 2
https://technet.microsoft.com/en-us/library/hh849727.aspx
https://technet.microsoft.com/en-us/library/hh849727.aspx
I you had older PowerShell on the server your limits and they did not increase you may have a limit of 5
http://stackoverflow.com/questions/17846417/getting-all-open-ps-sessions-on-a-remote-server-from-new-console-window
http://stackoverflow.com/questions/17846417/getting-all-open-ps-sessions-on-a-remote-server-from-new-console-window
This Microsoft article explains how to change the setting, but you must verify with current Microsoft articles.
https://msdn.microsoft.com/en-us/library/ee309367(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/ee309367(v=vs.85).aspx
Also a blog on it here:
https://blogs.msdn.microsoft.com/PowerShell/2010/05/02/configuring-wsman-limits/
https://blogs.msdn.microsoft.com/PowerShell/2010/05/02/configuring-wsman-limits/