Skip to content

Get-SqlDscServerProtocol: Add new command #2104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
johlju opened this issue May 14, 2025 · 0 comments
Open

Get-SqlDscServerProtocol: Add new command #2104

johlju opened this issue May 14, 2025 · 0 comments

Comments

@johlju
Copy link
Member

johlju commented May 14, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant