Hi, I have COM object with few constructors, i'm trying to create new instance and passing parameters to the constructor using powershell 2.0, but i'm getting this error: Parameter set cannot be resolved using the specified named parameters.
This is the code:
$paramsInfo = New-Object -ComObject 'MyObject.ObjectA'
$comObj = New-Object -ComObject 'MyObject.ObjectB' -ArgumentList $paramsInfo
This code doesn't work!!! Any help?