Notifications

56 views

Description


  1. Open the SCCM Server record from list

                 https://<INSTANCE>.service-now.com/sn_client_sf_dist_cmdb_ci_sccm_server_list.do?sysparm_query=

             2. Click "Discover Now" button (as shown below in the screenshot)

             3. Workflow context return error as below:  

The term 'Get-CMUserCollection' 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.
HRESULT: [-2146233087]

Solution


1. Get-Command : module ConfigurationManager --  Name “Get-CMDeviceCollection”, “Get-CMUserCollection” from their powershell console within the SCCM server to proof issue is resided in the cmdlet.

Error return as below:

@@@

The term 'Get-CMUserCollection' 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.

@@@ 

2. Customer needs to update cmdlet library.

3. If issue persist, powershell admin need to repair the library from console.

Root Cause:

The root cause of the issue is the cmdlet unavailableRun following command

Applicable Versions


London

 

Article Information

Last Updated:2019-04-08 04:40:06
Published:2019-04-08