Open NemoDima opened 4 years ago
Hi @NemoDima,
I've just noticed that the resource your config is using the Group 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 Group 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.
I've run into this with the PSDscResources Group resource.
ConfigurationName : TestConfiguration
DependsOn :
ModuleName : PSDscResources
ModuleVersion : 2.10.0.0
PsDscRunAsCredential :
ResourceId : [Group]CreateDBUsersGroup
SourceInfo : \\ast-deploy.asteres.local\Configuration\Source\TestConfiguration.ps1::140::5::Group
DurationInSeconds : 2.641
Error : {
"Exception": {
"Message": "PowerShell DSC resource MSFT_GroupResource failed to execute Test-TargetResource functionality with error message: Exception calling \".ctor\" with \"2\" argument(s): \"Server names cannot contain a space
character.\" ",
This appears to be related to https://github.com/dsccommunity/xPSDesiredStateConfiguration/issues/180
Details of the scenario you tried and the problem that is occurring
Try to create a group and add a new user to it
Verbose logs showing the problem
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 Datacenter OsOperatingSystemSKU : DatacenterServerEdition OsArchitecture : 64-bit WindowsBuildLabEx : 14393.1794.amd64fre.rs1_release.171008-1615 OsLanguage : en-US OsMuiLanguages : {en-US}
Windows is launched under VMware® Workstation 15 Pro 15.1.0 build-13591040
Version and build of PowerShell the target node is running
PSVersion 5.1.14393.1884
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.1884
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)
? master current 2.12.0.0-PSGallery