Unexpected Token ‘}’ in Expression or Statement when using $AllNodes in a Desired State Configuration

I was working on testing a custom DSC Resource when I came across a very strange issue. Whenever I tried to build a Configuration like the one below, it failed. First Configuration: $ConfigData =@{ AllNodes = @( @{ NodeName = ‘*’ PSDSCAllowPlainTextPassword = $True } ) } Configuration TestConfig{ Import-DscResource -ModuleName @{ModuleName=”xComputerManagement”;ModuleVersion=”1.3.0″} Node $AllNodes.Nodename{ xComputer

Read More