-
Notifications
You must be signed in to change notification settings - Fork 18
Description
XCopy the CimETWProvider module and DSC resource
robocopy /s %sdxroot%\ admin\axp.test\cim\cimetwprovider\cmdletization "%ProgramFiles%"\WindowsPowerShell\Modules\CimETWProvider
Open a PowerShell prompt.
cd $env:programfiles\WindowsPowerShell\Modules\CimETWProvider\DscResources\MSFT_xEtwSession
Import-Module xDscResourceDesigner
Run Test-xDscSchema .\msft_xetwsession.schema.mof
Expected: No Errors
Actual: An erroneous error is reported for the Providers property
Test-SchemaProperty : In property Providers, only MSFT_Credential and MSFT_KeyValuePair are allowed as EmbeddedInstances.
At C:\Program Files\WindowsPowerShell\Modules\xDSCResourceDesigner\xDSCResourceDesigner.psm1:2335 char:17
- ... $null = Test-SchemaProperty $_ ([ref]$hasKey) ([ref]$errorIds)
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : InvalidEmbeddedInstance,Test-SchemaProperty
Run Test-xDscResource xEtwsession
Expected: No Errors
Actual: Multiple erroneous errors are reported for the Providers property
Test-SchemaProperty : In property Providers, only MSFT_Credential and MSFT_KeyValuePair are allowed as EmbeddedInstances.
At C:\Program Files\WindowsPowerShell\Modules\xDSCResourceDesigner\xDSCResourceDesigner.psm1:2335 char:17
- ... $null = Test-SchemaProperty $_ ([ref]$hasKey) ([ref]$errorIds)
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : InvalidEmbeddedInstance,Test-SchemaProperty
Test-BasicDscFunction : In function Get-TargetResource, the type Microsoft.Management.Infrastructure.CimInstance[] of parameter Providers is not supported.
At C:\Program Files\WindowsPowerShell\Modules\xDSCResourceDesigner\xDSCResourceDesigner.psm1:2694 char:13
-
$null = Test-BasicDscFunction $GetCommandInfo.Value "Get-TargetRe ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : UnsupportedTypeError,Test-BasicDscFunction
Test-BasicDscFunction : In function Set-TargetResource, the type Microsoft.Management.Infrastructure.CimInstance[] of parameter Providers is not supported.
At C:\Program Files\WindowsPowerShell\Modules\xDSCResourceDesigner\xDSCResourceDesigner.psm1:2696 char:13
-
$null = Test-BasicDscFunction $SetCommandInfo.Value "Set-TargetRe ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : UnsupportedTypeError,Test-BasicDscFunction
Test-BasicDscFunction : In function Test-TargetResource, the type Microsoft.Management.Infrastructure.CimInstance[] of parameter Providers is not supported.
At C:\Program Files\WindowsPowerShell\Modules\xDSCResourceDesigner\xDSCResourceDesigner.psm1:2698 char:13
-
$null = Test-BasicDscFunction $TestCommandInfo.Value "Test-Target ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : UnsupportedTypeError,Test-BasicDscFunction