Skip to content

MSFT_SPInstallPrereqs.psm1 missing MSVCRT142 in the Results array #1452

@Maurikrm

Description

@Maurikrm

Problem description

For SPSE the Desired State test for MSVCRT142 is failing because the check for MSVCRT142 = $MSVCRT142 in the results array in the MSFT_SPInstallPrereqs.psm1 module is missing

Verbose logs

{"time": "2025-03-19T13:27:26.242+00:00", "type": "verbose", "message": "[ServerName]: LCM:  [ Start  Resource ]  [[SPInstallPrereqs]Install_SP_Prereqs]  "},
  {"time": "2025-03-19T13:27:26.273+00:00", "type": "verbose", "message": "[ServerName]: LCM:  [ Start  Test     ]  [[SPInstallPrereqs]Install_SP_Prereqs]  "},
  {"time": "2025-03-19T13:27:27.732+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Testing installation status of SharePoint prerequisites"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Getting installation status of SharePoint prerequisites"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Check if InstallerPath folder exists"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Checking file status of \\\\ServerName\\SPSources\\SE\\Install\\prerequisiteinstaller.exe"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Checking status now"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] File not blocked, continuing."},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Version: SharePoint Server Subscription Edition"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Getting installed windows features"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] OS Version: Windows Server 2022"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] The operation 'Get-WindowsFeature' started: NET-WCF-Pipe-Activation45,NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net45,Web-Net-Ext45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,WAS,WAS-Process-Model,WAS-Config-APIs,Web-Mgmt-Console,Web-Mgmt-Tools"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] The operation 'Get-WindowsFeature' succeeded: Web-Server,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Static-Content,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Basic-Auth,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Mgmt-Tools,Web-Mgmt-Console,NET-WCF-HTTP-Activation45,NET-WCF-Pipe-Activation45,NET-WCF-TCP-Activation45,WAS,WAS-Process-Model,WAS-Config-APIs"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Windows feature Web-Mgmt-Console is not installed"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Checking windows packages from the registry"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Current Values: AppFabric=; DotNet472=; DotNet48=\\\\ServerName\\SPSources\\SE\\prerequisiteinstallerfiles\\ndp48-web.exe; DotNetFx=; Ensure=Absent; IDFX=; IDFX11=; InstallerPath=\\\\ServerName\\SPSources\\SE\\Install\\prerequisiteinstaller.exe; IsSingleInstance=Yes; KB2671763=; KB3092423=; MSIPCClient=; MSVCRT11=; MSVCRT14=; MSVCRT141=; NETFX=; ODBC=; OnlineMode=False; PowerShell=; SQLNCli=; SXSpath=; Sync=; WCFDataServices=; WCFDataServices56="},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Target Values: DotNet48=\\\\ServerName\\SPSources\\SE\\prerequisiteinstallerfiles\\ndp48-web.exe; Ensure=Present; InstallerPath=\\\\ServerName\\SPSources\\SE\\Install\\prerequisiteinstaller.exe; IsSingleInstance=Yes; MSVCRT142=\\\\ServerName\\SPSources\\SE\\prerequisiteinstallerfiles\\VC_redist.x64.exe; OnlineMode=False; Verbose=True"},
  {"time": "2025-03-19T13:27:27.748+00:00", "type": "verbose", "message": "[ServerName]:                            [[SPInstallPrereqs]Install_SP_Prereqs] Test-TargetResource returned False"},
  {"time": "2025-03-19T13:27:27.763+00:00", "type": "verbose", "message": "[ServerName]: LCM:  [ End    Test     ]  [[SPInstallPrereqs]Install_SP_Prereqs] False in 1.4900 seconds."},
  {"time": "2025-03-19T13:27:27.763+00:00", "type": "verbose", "message": "[ServerName]: LCM:  [ End    Resource ]  [[SPInstallPrereqs]Install_SP_Prereqs]  "},

DSC configuration

SPInstallPrereqs 'Install_SP_Prereqs'
            {
                IsSingleInstance     = 'Yes'
                InstallerPath        = (Join-Path -Path $installSPFolder -ChildPath 'prerequisiteinstaller.exe')
                OnlineMode           = $false
                DotNET48             = (Join-Path -Path $installSPPrereqFolder -ChildPath 'ndp48-web.exe')
                MSVCRT142            = (Join-Path -Path $installSPPrereqFolder -ChildPath 'VC_redist.x64.exe')
                Ensure               = 'Present'
                PSDscRunAsCredential = $InstallAccount

Suggested solution

Add MSVCRT142 = $MSVCRT142 to the results array in the MSFT_SPInstallPrereqs.psm1 module

SharePoint version and build

SharePoint Subscription Edition - 16.0.18526.20080

Operating system the target node is running

Windows Server 2022 Core

PowerShell version and build the target node is running

PowerShell 5

SharePointDsc version

5.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions