Symptoms

New subscription for Lync2013 cannot be provisioned, error message is

Dec 10 06:11:39 psacore : DBG [1:3405:b35fcba0:4194 1:3405:afb99ba0 chief]: [txn:1119805 Resource_impl::getResource] <=== EXIT [0.011964]
Dec 10 06:11:39 psacore : INF [1:3405:b35fcba0:4194 1:3771:adf1aba0 SAAS]: [txn:1119805 saas_provider] [APS] Auto-provisioning of application instance for subscription with id 1001326 from resource type with id 1002000 failed because of error(s): Instance of application with id 742 and version
 '1.1-25' can not be provided: Invalid value passed for setting 'RunspaceException': Internal exception occurred. For more information see error details..

In Application log on provisioning gateway:

The term 'get-cspool' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Cause

PowerShell command get-cspool is not recognized on the Lync servers due to lack of proper modules on Lync Provisioning Gateway.

Resolution

Copy modules from C:\Program Files\Common Files\Microsoft Lync Server 2013\Modules to C:\Windows\System32\WindowsPowerShell\v1.0\Modules on Lync Provisioning Gateway.

This problem was reported to the maintenance team as APSA-5822

Internal content