Skip to content

Using static methods in Powershell 5 classes in modules used by ZervicePoint can cause issues

Problem

New in PowerShell 5 is the ability to use classes. An issue has been observed when static methods on classes are defined and those methods make use of other PowerShell modules, this can cause modules to sometimes not be available when ZervicePoint handles multiple threads making use of the same module.

Solution

None available other than to avoid using static methods on classes in these cases.