question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SPInstallPrereqs: Get-SPDSCAssemblyVersion is not recognized

See original GitHub issue

Details of the scenario you try and problem that is occurring: Today, I saw this error several times:

[[SPInstallPrereqs]InstallPrereqs] Getting installation status of SharePoint prerequisites
The term 'Get-SPDSCAssemblyVersion' 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.
    + CategoryInfo          : ObjectNotFound: (Get-SPDSCAssemblyVersion:) [], CimException
    + FullyQualifiedErrorId : CommandNotFoundException

The error occurs on the first (and sometimes second) start of a DSC configuration. The issue is reproducible.

The DSC configuration that is using the resource: Shortend configuration

Configuration SharePoint
{
    param( [string]$NodeName  )

    Import-DscResource -ModuleName SharePointDsc -ModuleVersion 1.8.0.0

    node $NodeName
    {
SPInstallPrereqs InstallPrereqs {
            Ensure        = "Present"
            OnlineMode    = $true
            InstallerPath = "$($binaryPath)\Sources\prerequisiteinstaller.exe"
            DependsOn     = @("[Script]DownloadSources", "[Group]LocalAdministrators") 
        }
}
}

Version of the Operating System and PowerShell the DSC Target Node is running: WIN2012R2 PSVersion 5.1.14409.1005

Version of the DSC module you’re using: 1.8.0.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
ykuijscommented, Oct 29, 2018

@SvenLauterbach Are you using the DependsOn parameters? Can you share your config? Can you try to add the resources one by one back into your config and try again? I am wondering if there is a specific resource that triggers this issue or maybe a certain number of resources?

Haven’t seen this type of issue before, so not sure what we can do to troubleshoot the issue.

0reactions
ykuijscommented, Oct 27, 2020

This issue is most probably caused by the fact that SQLPS is used and both the SQL and SP resources are using the same PsDscRunAsCredential. More details are described here.

Closing the issue since the solution is to use the SQLServer module instead and SQLPS is no longer updated.

Please add comments if these solutions don’t work, so we can investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found