Open johlju opened 6 years ago
The example in DemoConfig.ps1 has a problem with the property ScriptsToProcess. It is assigned a string, but it expects a string array.
ScriptsToProcess
https://github.com/PowerShell/JEA/blob/e53cdcb78fb9c80c564f7d0d57d295ca9198ae76/DSC%20Resource/DemoConfig.ps1#L14-L21
Running the example gives this error
Convert property 'ScriptsToProcess' value from type 'STRING' to type 'STRING[]' failed At line:12, char:2 Buffer: irectResourceAccess"; };^ insta + CategoryInfo : SyntaxError: (root/Microsoft/...gurationManager:String) [], CimException + FullyQualifiedErrorId : MiClientApiError_Failed + PSComputerName : localhost
I suggest to change the property ScriptsToProcess to this
ScriptsToProcess = @('C:\ProgramData\JeaEndpoint\startup.ps1')
The example in DemoConfig.ps1 has a problem with the property
ScriptsToProcess
. It is assigned a string, but it expects a string array.https://github.com/PowerShell/JEA/blob/e53cdcb78fb9c80c564f7d0d57d295ca9198ae76/DSC%20Resource/DemoConfig.ps1#L14-L21
Running the example gives this error
I suggest to change the property
ScriptsToProcess
to this