Im having issues with the Group Resource and domain user accounts. It seems to only work if i use the PSDscAllowPlainTextPassword=$true variable when passing in the credentials. If i use the CertificateFile variable in the configuration data pointed to a cert that’s installed on the target node i get the error below. Has anyone gotten the Group Resource to work with encrypted credentials?
The PowerShell provider MSFT_GroupResource threw one or more non-terminating errors while running the Test-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational.
Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (
, CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
EventLog:
Job {DF4B4371-F349-440A-A50C-C57FFE37E6C3} :
This event indicates that a non-terminating error was thrown when DSCEngine was executing Test-TargetResource on MSFT_GroupResource provider. FullyQualifiedErrorId is COMException. ErrorMessage is Exception calling “FindByIdentity” with “2” argument(s): "The user name or password is incorrect.
".
$ConfigurationData=@{
AllNodes = @(
# All the Servers have the following identical information
@{
NodeName = "*"
CertificateFile = "c:\cert.cer"
},
@{
NodeName = "localhost"
}
);
}
configuration AdminGroup
{
param(
[PsCredential]$Credential
)
node $Allnodes.NodeName
{
Group Administrators
{
GroupName = "Administrators"
Credential = $Credential
Ensure = "Present"
Members = "Administrator","Lab\account1","lab\account2"
}
}
}
AdminGroup -ConfigurationData $ConfigurationData -OutputPath c:\AdminGroup -Credential (Get-Credential)
Start-DscConfiguration -Path C:\AdminGroup -Wait -Verbose -force -WhatIf