You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
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
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters,''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer WIN-625BDGBIE5Q with user sid S-1-5-21-1433097689-3504384152-1439987464-1002.
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ StartSet ]
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ StartResource ] [[User]UserExample]
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ StartTest ] [[User]UserExample]
VERBOSE: [WIN-625BDGBIE5Q]: [[User]UserExample] A user with the name FtpBackup exists.
VERBOSE: [WIN-625BDGBIE5Q]: [[User]UserExample] All User FtpBackup properties match.
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ EndTest ] [[User]UserExample] in2.3790 seconds.
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ SkipSet ] [[User]UserExample]
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ EndResource ] [[User]UserExample]
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ StartResource ] [[Group]FTPBackup]
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ StartTest ] [[Group]FTPBackup]
Exception calling "FindByIdentity" with "2" argument(s): "The specified local group does not exist."+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : PrincipalOperationException,GetGroup
+ PSComputerName : localhost
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ EndTest ] [[Group]FTPBackup] in2.5470 seconds.
The PowerShell DSC resource '[Group]FTPBackup' with SourceInfo '::21::9::Group' threw one or more non-terminating errors while runnin
g the Test-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer t
o this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [WIN-625BDGBIE5Q]: LCM: [ EndSet ]
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1+ PSComputerName : localhost
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 5.568 seconds
The DSC configuration that is used to reproduce the issue (as detailed as possible)
ConfigurationBasic_settings
{
Import-DscResource-ModuleName PSDesiredStateConfiguration
Node "localhost"
{
$FTPpassword="ForB1"|ConvertTo-SecureString-asPlainText -Force
$FTPusername="FtpBackup"
[PSCredential] $FTPcredential=New-Object System.Management.Automation.PSCredential($FTPusername,$FTPpassword)
User UserExample
{
Ensure ="Present"# To ensure the user account does not exist, set Ensure to "Absent"
UserName ="FtpBackup"
FullName ="FtpBackup"
Description ="GoodStream"
Password =$FTPcredential# This needs to be a credential object
PasswordNeverExpires =$true
}
Group FTPBackup
{
GroupName ='FTPBackup'
Ensure ='Present'
MembersToInclude ='FtpBackup'
DependsOn ='[User]UserExample'
}
}
}
$configData=@{
AllNodes=@(
@{
NodeName='*'PSDscAllowPlainTextPassword=$TruePsDscAllowDomainUser=$true
}
@{
NodeName='localhost'PSDscAllowPlainTextPassword=$TruePsDscAllowDomainUser=$true
}
)
}
Basic_settings -OutputPath "C:\DSC\Configurations"-ConfigurationData $configDataStart-DscConfiguration-Wait -Verbose -Path "C:\DSC\Configurations"-Force
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
Version of the DSC module that was used ('dev' if using current dev branch)
? master current 2.12.0.0-PSGallery
The text was updated successfully, but these errors were encountered:
NemoDima
changed the title
ResourceName: Can't create a Group and add a new user to it
Group: Can't create a Group and add a new user to it
Mar 18, 2020
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.
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
The text was updated successfully, but these errors were encountered: