Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The WMI service or the WMI provider returned an unknown error: HRESULT 0x80041033 #452

Closed
FeralCatColonist opened this issue Feb 19, 2023 · 3 comments

Comments

@FeralCatColonist
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Module Version

  • 4.0.2

Affected Resource(s)

  • ArcGISWebAdaptor

Configuration Files

{
    "AllNodes": [
        {
            "NodeName": "ToP-ArcGIS-T03",
            "DataStoreTypes": [
                "Relational",
                "SpatioTemporal"
            ],
            "Role": [
                "DataStore"
            ]
        },
        {
            "NodeName": "ToP-ArcGIS-T02",
            "Role": [
                "Portal",
                "PortalWebAdaptor"
            ]
        },
        {
            "NodeName": "ToP-ArcGIS-T01",
            "Role": [
                "Server",
                "ServerWebAdaptor"
            ]
        }
    ],
    "ConfigData": {
        "Version": "10.8.1",
        "ServerContext": "server",
        "PortalContext": "portal",
        "ServerRole": "GeneralPurposeServer",
        "Credentials": {
            "ServiceAccount": {
                "Password": "-----",
                "UserName": "-----",
                "IsDomainAccount": false,
                "IsMSAAccount": false
            }
        },
        "Server": {
            "LicenseFilePath": "C:\\arcgis_software\\ArcGIS_Server\\ArcGISGISServerAdvanced_ArcGISServer_1286679.prvc",
            "Installer": {
                "Path": "C:\\arcgis_software\\ArcGIS_Server\\ArcGIS_Server_Windows_1081_175203.exe",
                "InstallDir": "C:\\ArcGIS\\Server",
                "InstallDirPython": "C:\\Python27",
                "EnableArcMapRuntime": "False",
                "EnableDotnetSupport": "True"
            },
            "ServerDirectoriesRootLocation": "C:\\arcgisserver\\directories",
            "ConfigStoreLocation": "C:\\arcgisserver\\config-store",
            "PrimarySiteAdmin": {
                "UserName": "-----",
                "Password": "-----"
            }
        },
        "Portal": {
            "LicenseFilePath": "C:\\arcgis_software\\ArcGIS_Portal\\ArcGIS_Enterprise_Portal_1081_409372_20230218.json",
            "PortalLicenseUserTypeId": "creatorUT",
            "Installer": {
                "Path": "C:\\arcgis_software\\ArcGIS_Portal\\Portal_for_ArcGIS_Windows_1081_175214.exe",
                "WebStylesPath": "C:\\arcgis_software\\ArcGIS_Portal\\Portal_for_ArcGIS_Web_Styles_Windows_1081_175215.exe",
                "InstallDir": "C:\\ArcGIS\\Portal",
                "ContentDir": "C:\\arcgisportal"
            },
            "ContentDirectoryLocation":"C:\\arcgisportal\\content",
            "PortalAdministrator": {
                "UserName": "-----",
                "Email": "-----",
                "Password": "-----",
                "SecurityQuestionIndex": 10,
                "SecurityAnswer": "-----"
            }
        },
        "DataStore": {
            "ContentDirectoryLocation": "C:\\arcgisdatastore",
            "EnableFailoverOnPrimaryStop": false,
            "Installer": {
                "Path": "C:\\arcgis_software\\ArcGIS_DataStore\\ArcGIS_DataStore_Windows_1081_175216.exe",
                "InstallDir": "C:\\ArcGIS\\DataStore"
            }
        },
        "WebAdaptor": {
            "AdminAccessEnabled": true,
            "Installer": {
                "Path": "C:\\arcgis_software\\ArcGIS_WebAdaptor\\ArcGIS_Web_Adaptor_for_Microsoft_IIS_1081_175217.exe"
            }
        }
    }
}

Expected Behavior

Self-signed certificate is correctly assigned

Actual Behavior

2/18/2023 10:13:13 PM: [TOP-ARCGIS-T01]:                            [[ArcGIS_IIS_TLS]WebAdaptorCertificateInstallToP-ArcGIS-T01] Creating using New-SelfSignedCertificate
2/18/2023 10:13:18 PM: Operation 'Invoke CimMethod' complete.
Trace-DSCJob : 2/18/2023 10:13:18 PM: The WS-Management service cannot process the request. The WMI service or the WMI
provider returned an unknown error: HRESULT 0x80041033
At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\4.0.2\ArcGIS.psm1:261 char:5
+     Trace-DSCJob -Job $Job -JobName $ConfigurationName -DebugMode $De ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob

2/18/2023 10:13:38 PM: Operation 'Invoke CimMethod' complete.
Trace-DSCJob : 2/18/2023 10:13:38 PM: The WS-Management service cannot process the request. The WMI service or the WMI
provider returned an unknown error: HRESULT 0x80041033
At C:\Program Files\WindowsPowerShell\Modules\ArcGIS\4.0.2\ArcGIS.psm1:261 char:5
+     Trace-DSCJob -Job $Job -JobName $ConfigurationName -DebugMode $De ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Trace-DSCJob

Steps to Reproduce

Important Factoids

  • On-premise VM in a nutanix cluster
  • This is an unadulterated copy of the BaseDeployment-ThreeMachine.json configuration file; utilizing this to spin up a non-SSL DEV site to test the DSC process before implementing on Production with per-machine SSL
  • I ran the DSC with DebugSwitch and EnableMSILogging parameters and can provide the logs upon request

References

This is the only search result that I could find that referenced that error; this is my first time using a DSC so I am unsure how helpful this might be:
dsccommunity/ComputerManagementDsc#353

@cameronkroeker
Copy link
Contributor

Hi @FeralCatColonist,

I have seen this once before, and was able to resolve it by updating .Net Framework to 4.8 or later.

  • Workaround 1: Update .Net Framework to 4.8 or later on the target node.
  • Workaround 2: Use a Domain or Certificate Authority signed SSL certificate: Add SSLCertificates attribute block in your configuration json file and set the SslCertificates.Target to "WebAdaptor".

Thanks,
Cameron K.

@FeralCatColonist
Copy link
Author

Oh man! That was the ticket! Thank you so much for pointing that out. We just got a wildcard SSL so I'll be walking through that workflow next.

image

@cameronkroeker
Copy link
Contributor

Hi @FeralCatColonist,

Glad to hear upgrading .Net Framework resolved the issue.

Thanks,
Cameron K.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants