Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Get-MofSchemaObject: Credential Attribute Output DataType has Changed #360

@X-Guardian

Description

@X-Guardian

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions