Closed considerITman closed 4 years ago
Update I tried commenting out the Service Block and I get the same error. I verified that the SPTraceV4 Service does not appear in the MOF file.
I've cross posted this in SharePoint DSC.
Hi @considerITman
I've just noticed that the resource your config is using the Service resource in the inbox PSDesiredStateConfiguration resource module. Those are the ones that come with Windows and are much older than this one. Can you instead use the Service resource in this module: PSDscResources
PSDscResources is a replacement for the Inbox resources. It is supported. There is also a community version of this module (xPSDesiredStateConfiguration) that would also work but may differ in function from the PSDscResources module.
Hi @PlagueHO,
thanks for your answer! I used the community version and it works like a charm!
Details of the scenario you tried and the problem that is occurring
I'm trying to ensure the tracing service to be in running state with the right identity. I'm passing a service-user in the Credential parameter. The resource fails with a user name mismatch. The user name it's trying to compare with is wrong - the Domainname is replaced with a '.' and there is another '.' appended to the user name:
I checked the MOF file and the user name is correct inside the credential instance:
Verbose logs showing the problem
Suggested solution to the issue
N/A
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
OsName : Microsoft Windows Server 2016 Standard OsOperatingSystemSKU : StandardServerEdition OsArchitecture : 64-bit WindowsBuildLabEx : 14393.3503.amd64fre.rs1_release.200131-0410 OsLanguage : en-US OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
PSVersion 5.1.14393.3471 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.14393.3471 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)
1.1