Skip to content

Get-SqlDscServerProtocol: Add new command #2104

@johlju

Description

@johlju

Problem description

Suggest changing the command to be a public command Get-SqlDscServerProtocol and update the command to use CIM instance.

https://github.com/dsccommunity/SqlServerDsc/blob/fc2b89f170c87a815e923180746bafc686253e3e/source/Modules/SqlServerDsc.Common/SqlServerDsc.Common.psm1#L2041C10-L2085

Verbose logs

n/a

How to reproduce

n/a

Expected behavior

n/a

Current behavior

n/a

Suggested solution

Maybe it possible to use a CIM instance to get the values instead of New-Object.

Get-CimInstance -Classname ServerNetworkProtocol  -ComputerName localhost -Namespace    "ROOT\Microsoft\SqlServer\ComputerManagement16"

Unsure if there is CIM methods to change the values, bit that would be a plus for a Set command.

Operating system the target node is running

n/a

PowerShell version and build the target node is running

n/a

Module version used

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    command proposalThe issue is proposing to add a new command to the module.enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions