DscResource.Tests icon indicating copy to clipboard operation
DscResource.Tests copied to clipboard

Get-MofSchemaObject: Credential Attribute Output DataType has Changed

Open X-Guardian opened this issue 6 years ago • 0 comments

Details of the problem, bug, or enhancement

Following on from PR #354, EmbeddedInstance("MSFT_Credential") MOF attributes output by Get-MofSchemaObject now have a DataType of Instance whereby previously they had a DataType of String.

Verbose logs showing the problem (if applicable)

Previous EmbeddedInstance("MSFT_Credential") attribute properties:

Name                           Value
----                           -----
State                          Write
DataType                       String
ValueMap
IsArray                        False
Name                           Credential
Description                    Specifies the user account credentials to use to perform the task.
EmbeddedInstance               MSFT_Credential

Current EmbeddedInstance("MSFT_Credential") attribute properties:

Name                           Value
----                           -----
Name                           Credential
ValueMap
Description                    Specifies the user account credentials to use to perform the task.
DataType                       Instance
State                          Write
IsArray                        False
EmbeddedInstance               MSFT_Credential

This output is used by New-DscResourcePowerShelHelp to create PowerShell Help files and New-DscResourceWikiSite to create Wiki documentation pages.

Suggested solution to the issue

Neither Instance nor String is actually very useful. What would be better is for an EmbeddedInstance of MSFT_Credential to output PSCredential as the DataType, and for other EmbeddedInstance types, output the EmbeddedInstance value as the DataType?

X-Guardian avatar Jan 15 '20 12:01 X-Guardian