Getting error Invoke-CimMethod : Value cannot be null. Parameter name: service for SPFarm resource
See original GitHub issueISSUE TITLE:
SPFARM - Getting error Invoke-CimMethod : Value cannot be null. Parameter name: service for SPFarm resource
ISSUE DESCRIPTION (this template):
Getting error Invoke-CimMethod : Value cannot be null. Parameter name: service for SPFarm resource
Details of the scenario you tried and the problem that is occurring
Verbose logs showing the problem
VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Detected Version: SharePoint 2016 - c onfiguring server as Application VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] The SharePoint config database ‘Share Point_Config’ already exists, so this server will join the farm. VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] The database exists, so attempt to jo in the server to the farm VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] The server will attempt to join the f arm now once every 60 seconds for the next 15 minutes. VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Leaving BeginProcessing Method of Con nect-SPConfigurationDatabase. VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Entering function SPMountSPConfigurat ionDatabase.InternalProcessRecord VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Creating connection string for config db SharePoint_Config server SQLServer VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Creating connection string for admin content db admincontentdatabase server SQLServer VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Using NTLM for sql connection string VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Openning configdb so that I can join it at server SQLServer database SharePoint_Config in farm mode VERBOSE: [ComputerName]: [[SPFarm]SharePointFarm] Now joining to farm at server SQLServer database SharePoint_Config Invoke-CimMethod : Value cannot be null. Parameter name: service At char:9
-
Invoke-CimMethod @parameters @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (Microsoft.Share…urationDatabase:) [Invoke-CimMethod], CimException
- FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletConnectSPConfigurationDatabase,Microsoft.Mana gement.Infrastructure.CimCmdlets.InvokeCimMethodCommand
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
The operating system the target node is running
Version of SharePoint that is used (e.g. SharePoint 2016) Sharepoint 2016
Version and build of PowerShell the target node is running
Name Value
PSVersion 5.1.17763.503
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
BuildVersion 10.0.17763.503
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the DSC module that was used (‘dev’ if using current dev branch) 3.3.0.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:31 (15 by maintainers)
Issue with app pool’s account I resolved with cleaning everything out and deleting pools, dbs and others. restarting everything and beginning from the start. Issue with names of databases I open as another topic.
Now lets return to ‘The type initializer for ‘Microsoft.Office.Access.Services.BrandStrings’ threw an exception.’ error. It was years ago and still here. I faced with it when used AutoSPInstaller too. Case is simple - running Install-SPService from powershell leads to error above (and SPFarm resource call it), but running psconfig.exe looks like workaround for now.
Khm, some of them are not. I’ll check it again.